How to get the branch compare by command-line?

For example, I want to get all the updated in testing branch but not updated in stable branch apps and packages, what should I type in the terminal?

1 Like
sudo pacman-mirrors -aS testing && sudo pacman -Syyu

No I don’t want to change branches as I am in testing branch now.

Your method does not work if I want to get all the updated in stable branch but not updated in testing branch (which has happened several times before) apps and packages,

There will never be packages which are updated in stable but not in testing.

The flow is always unstabletestingstable

What you are referring to must be mirrors syncing at different times.

If you want to make sure you are always looking at the same set of packages - create a custom mirror pool with only one mirror.

I think what I want is here. But there is no mbn command here on my computer/pacman/AUR. @omano

You are referring to a two months old announcement and that is completely irrelevant to your question.

Try searching the archived forum - I think there was a member creating a script of some kind.

Install manjaro-check-repos from Papajoke. It is in the repositories.

Alternatively, to find which package a file is from, search with pacman -F NameOfTheFileHere

2 Likes

Thanks! (It is not in the Manjaro Wiki either) But although I installed pyalpm, it says:

mbn versions --testing --stable -v
Traceback (most recent call last):
  File "/usr/share/manjaro-check-repos/__main__.py", line 9, in <module>
    from lib.alpm import AlpmBranch
  File "/usr/share/manjaro-check-repos/lib/alpm.py", line 15, in <module>
    import pyalpm
ModuleNotFoundError: No module named 'pyalpm'

Read the documentation of the program you just installed, it may help.

mbn update

This error happens whenever I type mbn

I don’t know then, it works for me.

[omano@omano-nvme ~]$ mbn update
:: Branch: archlinux
:: Synchronizing package databases...
 core                                                                   138,8 KiB   270 KiB/s 00:01 [##########################################################] 100%
 extra                                                                 1571,8 KiB  1179 KiB/s 00:01 [##########################################################] 100%
 community                                                                5,8 MiB  1221 KiB/s 00:05 [##########################################################] 100%
:: Branch: unstable
:: Synchronizing package databases...
 core                                                                   174,4 KiB   296 KiB/s 00:01 [##########################################################] 100%
 extra                                                                 1905,0 KiB  1174 KiB/s 00:02 [##########################################################] 100%
 community                                                                6,7 MiB  1215 KiB/s 00:06 [##########################################################] 100%
 multilib                                                               177,1 KiB   577 KiB/s 00:00 [##########################################################] 100%
:: Branch: testing
:: Synchronizing package databases...
 core                                                                   174,4 KiB   297 KiB/s 00:01 [##########################################################] 100%
 extra                                                                 1909,1 KiB  1107 KiB/s 00:02 [##########################################################] 100%
 community                                                                6,7 MiB  1151 KiB/s 00:06 [##########################################################] 100%
 multilib                                                               177,0 KiB   632 KiB/s 00:00 [##########################################################] 100%
:: Branch: stable-staging
:: Synchronizing package databases...
 core                                                                   174,4 KiB   294 KiB/s 00:01 [##########################################################] 100%
 extra                                                                 1909,1 KiB   880 KiB/s 00:02 [##########################################################] 100%
 community                                                                6,7 MiB  1030 KiB/s 00:07 [##########################################################] 100%
 multilib                                                               177,0 KiB   610 KiB/s 00:00 [##########################################################] 100%
:: Branch: stable
:: Synchronizing package databases...
 core is up to date
 extra                                                                 1900,2 KiB  1066 KiB/s 00:02 [##########################################################] 100%
 community                                                                6,8 MiB  1215 KiB/s 00:06 [##########################################################] 100%
 multilib is up to date

[omano@omano-nvme ~]$ mbn versions --testing --stable-staging -v
:: Compare versions stable-staging / testing
:: 13234 packages

1.The default python is in conflict with my Anaconda python.

:: Branch: stable-staging
error: config file /var/lib/manjaro-repos/stable-staging/etc/pacman.conf could not be read: No such file or directory

 Error: CalledProcessError: Command '['sudo', 'pacman', '-Sy', '--logfile', '/var/lib/manjaro-repos/stable-staging/pacman.log', '--config', '/var/lib/manjaro-repos/stable-staging/etc/pacman.conf']' returned non-zero exit status 1. 🤕
  1. does it have a mirror or something? Its speed is only 1% of pacman

First if you replace major system component, I would say your modification is in conflict with programs from the repositories.

What should we understand again with your random sniped terminal output?

It uses your current mirror.

1 Like

You can change the Manjaro mirror in /etc/manjaro-check-repos/manjaro.conf.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.