I suspect you’ll have to chroot into your installation and run a complete update again to re-sync your system.
How to chroot
Ensure you’ve got a relatively new ISO or at least one with a still supported LTS kernel.
Write/copy/dd the ISO to a USB thumb drive.
When done, boot with the above mentioned USB thumb drive into the live environment.
Once booted, open a terminal and enter the following command to enter the chroot encironment:
manjaro-chroot -a
If you have more than one Linux installation, select the correct one to use from the list provided.
When done, you should now be in the chroot environment.
But, be careful, as you’re now in an actualroot environment on your computer, so any changes you make will persist after a restart.
Once you are in the chroot environment, you need to update/sync again.
Full update command
pamac upgrade && pamac upgrade --aur --devel || echo -e '\033[0;91mThere was an error upgrading the system. AUR packages not upgraded.\e[0m'
This will update your system and ONLY if that was successful update any AUR packages.
a Reminder: While use of the AUR is possible, it’s neither recommended nor supported.
I recommend pamac instead of pacman, especially for newcomers as pamac was developed by Manajaro (developers) for Manjaro and just takes care of more thing than pacman. For example:
sudo fsck -p /dev/nvme0n1 8 ✘
fsck from util-linux 2.39.3
fsck.ext2: Bad magic number in super-block while trying to open /dev/nvme0n1
/dev/nvme0n1:
The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem. If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
or
e2fsck -b 32768 <device>
/dev/nvme0n1 contains `DOS/MBR boot sector; partition 1 : ID=0xee, start-CHS (0x0,0,2), end-CHS (0x3ff,255,63), startsector 1, 2000409263 sectors, extended partition table (last)' data
Nevermind again. Thats not a valid section anyway =D
I try not to use pamac, if it can be avoided; however, I’m not aware of such an option (especially not in the GUI). I imagine it’s not too difficult to create a (one-line) list of additional packages and paste that to terminal.
pamac example:
pamac install code mc fontforge gimp handbrake inkscape krita vlc
pacman example:
sudo pacman -S code mc fontforge gimp handbrake inkscape krita vlc
Maybe someone has something already scripted which you could modify to suit your needs.
However, if you’re vaguely reaching for some way to magically avoid reinstalling your system, I dare say, you are out of luck.
Please heed the advice previously given by several people, which ultimately leads to reinstalling as being your remaining option.
For some (insert) reason … pamac does not accept direct input from itself, such as pamac install $(pamac list -iq) … and by default it prints all packages, including foreign, and while it provides a way to print only foreign packages … it does not provide a way to print only native packages.
So … we have to be hacky about it if we want to exclude AUR packages.
(which, even though pamac can handle both - require different flags, so cannot be combined)
pamac list -iq > ~/package_list.txt
pamac list -mq > ~/foreign.txt
grep -v -f ~/foreign.txt ~/package_list.txt > ~/native.txt
Now you can do
pamac install $(cat ~/native.txt)
and
pamac build $(cat ~/foreign.txt)
(and now I will do sudo pacman -Rns pamac-cli again )