Changing branch, pacman sync, pamac no sync?

For some days pamac offered 50 updates for my system and although I did not understand why I let pamac install them yesterday. This broke my system. With help from @ maycne.sonahoz I got the system back to normal. Again pamac reported 50 updates.

Now I am wondering why this happened. It seems this:

  1. Briefly changed branch from Stable to Unstable to update 1 application
  2. Changed back to Stable and let pacman sync as described here Switching Branches - Manjaro
  3. pacman did not show updates but pamac did

After choosing ‘refresh databases’ in pamac the updates were gone / not offered by pamac.

I understand that partial updates are discouraged and unsupported. (The 1 updated application, i.e. Ardour 7.1, did not trigger other updates and ran fine on Stable.)

Why is pamac not triggered by the pacman syncing process to update the update list? (All 50 updates were from Manjaro’s Unstable, none were AUR). Is it possible / advisable to create a pacman hook which triggers pamac to refresh its database?

How would pacman/pamac know that you changed branches?

Changing branches is nothing fancy, it is merely pointing the mirrors to another folder (stable/testing/unstable). Changing branches should not be done willy-nilly, you are responsible for cleaning up.

Think long and hard before switching branches. Stability has its benefits. Your ability to fix errors/bugs on your own without support and your bug tolerance should guide the decision.

That being said. Its possible that you have corrupted database files.
sudo rm /var/lib/pacman/sync/*.*
will remove them, then refresh the database’s to replace them.

My point is that in the process of switching branches pamac is left out: pacman cleans up but forgets to inform pamac. pamac then presents updates which should not be installed.
Yes, I recognize being responsible for this, I don’t blame anyone and am thankful for the help on this forum. But it seems to me feasible and clear that pacman informs pamac to refresh its database. pamac fooled me with the list of updates.
I will not make this mistake / oversight twice i.e. forget to manually update the pamac database. My post is also meant to make Manjaro even better than it already is!

I understand where you are coming from, “been there, done that” type of thing. But it is just a matter of getting to realise what the process is; so in order to force a sync for pacman’s database use:

sudo pacman -Syyu

But before changing branches, sometimes it is easier just to grab the package you need:

sudo pacman -U

pamacs synced databases need to be refreshed (forcibly) by the user using it. pacman does not know about this other package manager with it’s own synced databases and certainly won’t “inform it”.

If you’re using pamac (instead of pacman) - why bother with updating pacmans databases? Just update pamacs instead and be done with it.

See the Manjaro Wiki about changing branches referenced in the opening post.

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