Error: Failed to prepare transaction: invalid or corrupted database - existing solutions exhausted

EDIT: READ THE THREAD BEFORE COPY-PASTING THE SOLUTION. There were a few other steps I had to take on my way there.

Hi everyone,
I think I’ve exhausted all of the solutions to the corrupted database issue existing in this forum and I’m slowly loosing my mind and getting ready to just nuke my whole setup.

tl;dr

❯ pamac update
...
Error: Failed to prepare transaction: invalid or corrupted database

What I’ve tried:

  • pamac update --force-refresh (succeed but resulted in all packages gone from the list of installed packages)
  • rm -rf /var/tmp/pamac/dbs/sync/* (same as above - even after pamac update my packages are gone from pamac updates)
  • sudo rm -R /var/lib/pacman/sync
  • pamac clean (no change)
  • Invalid or corrupted database - #4 by Yochanan (no change)
  • sudo pacman -Syyu (no change, expected as it’s all AUR)

I’m happy to provide whatever debug info needed. Thanks!

Full pamac output:

❯ pamac update
Preparing...
Synchronizing package databases...
Refreshing AUR...                                                                                                                                                                                                   
Checking pamac-tray-icon-plasma dependencies...                                                                                                                                                                     
Checking yay dependencies...
Checking zsh-theme-powerlevel10k dependencies...
Checking game-devices-udev dependencies...
Cloning faudio build files...
Generating faudio information...
Checking faudio dependencies...
Cloning ckbcomp build files...
Generating ckbcomp information...
Checking ckbcomp dependencies...
Checking pyside2 dependencies...
Cloning krunner5 build files...
Generating krunner5 information...
Checking krunner5 dependencies...
Checking python-hid-parser dependencies...
Checking mhwd-nvidia dependencies...
Checking python-shiboken2 dependencies...
Checking python-mock dependencies...
Checking snapd dependencies...
Checking electron25 dependencies...
Checking v86d dependencies...
Checking clang-opencl-headers-minimal-git dependencies...
Checking clang-build-analyzer-git dependencies...
Checking clang-format-static-bin dependencies...
Checking clangd-opt-git dependencies...
Checking clang-libs-minimal-git dependencies...
Checking clang-format-linter-git dependencies...
Checking llvm-rocm-git dependencies...
Checking llvm-git dependencies...
Checking clang-minimal-git dependencies...
Checking llvm-libs-minimal-git dependencies...
Checking llvm-libs-rocm-git dependencies...
Checking llvm-libs-git dependencies...
Error: Failed to prepare transaction: invalid or corrupted database



Edit build files : [e] 
Apply transaction ? [e/y/N] y

Transaction cancelled.

Hi @Artur,

I think you need this:

https://wiki.archlinux.org/title/Pacman/Restore_local_database

Hope this helps!

Thank you Mirdarthos! I’ll try this and report back today.

1 Like

Your issue is because you try to update everything in one command.

Please sync repo first then build your custom packages.

sudo pacman -Syu

Then

pamac update --aur
2 Likes

Hi @linux-aarhus, this doesn’t seem to to fix anything:

❯ sudo pacman -Syu
[sudo] password for artur: 
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
 there is nothing to do
❯ pamac update --aur
Preparing...
Synchronizing package databases...
Refreshing AUR...                                                                                                                                                                                                   
Checking pamac-tray-icon-plasma dependencies...                                                                                                                                                                     
Checking yay dependencies...
Checking zsh-theme-powerlevel10k dependencies...
Checking game-devices-udev dependencies...
Cloning faudio build files...
Generating faudio information...
Checking faudio dependencies...
Cloning ckbcomp build files...
Generating ckbcomp information...
Checking ckbcomp dependencies...
Checking pyside2 dependencies...
Cloning krunner5 build files...
Generating krunner5 information...
Checking krunner5 dependencies...
Checking python-hid-parser dependencies...
Checking mhwd-nvidia dependencies...
Checking python-shiboken2 dependencies...
Checking python-mock dependencies...
Checking snapd dependencies...
Checking electron25 dependencies...
Checking v86d dependencies...
Checking clang-opencl-headers-minimal-git dependencies...
Checking clang-build-analyzer-git dependencies...
Checking clang-format-static-bin dependencies...
Checking clangd-opt-git dependencies...
Checking clang-libs-minimal-git dependencies...
Checking clang-format-linter-git dependencies...
Checking llvm-rocm-git dependencies...
Checking llvm-git dependencies...
Checking clang-minimal-git dependencies...
Checking llvm-libs-minimal-git dependencies...
Checking llvm-libs-rocm-git dependencies...
Checking llvm-libs-git dependencies...
Error: Failed to prepare transaction: invalid or corrupted database



Edit build files : [e] 
Apply transaction ? [e/y/N] 

Transaction cancelled.

If one must use pamac … then one should clean it regularly.

Probably the build directory specifically when trying to build from AUR and failing multiple times, and specifically the database when it complains about being corrupted.

pamac clean -b
pamac update --force-refresh

PS.

Are you sure about all your AUR packages ?

If you are still on Manjaro Stable branch with Plasma5 … then krunner5 is in the repos.
If you are on any other branch… then you are on Plasma6 and krunner5 should probably be removed.

PPS.

You really have not been doing your maintenance.
The [community] repo was deprecated a long time ago.
This probably also indicates you have ignored pacnews for however long.
To print them all you can do

pacdiff -o

You should take care of them.

❯ pamac clean -b
To delete: 19 files  (1,3 GB)
Clean build files ? [y/N] y
==== AUTHENTICATING FOR org.manjaro.pamac.commit ====
Authentication is required to install, update, or remove packages
Authenticating as: Artur (artur)
Password: 
==== AUTHENTICATION COMPLETE ====
❯ pamac update --force-refresh
Preparing...
Synchronizing package databases...
Refreshing core.db...                                                                                                                                                                                               
Refreshing extra.db...                                                                                                                                                                                              
Refreshing community.db...                                                                                                                                                                                          
Refreshing multilib.db...                                                                                                                                                                                           
Refreshing core.files...                                                                                                                                                                                            
Refreshing extra.files...                                                                                                                                                                                           
Refreshing community.files...                                                                                                                                                                                       
Refreshing multilib.files...                                                                                                                                                                                        
Refreshing AUR...                                                                                                                                                                                                   
Nothing to do.                                                                                                                                                                                                      
Transaction successfully finished.

What do I do now? :grimacing: That’s also what happened when I was removing the DBs manually last time. I have a backup of /var/tmp/pamac/dbs/sync/, I guess I need to restore it now?

I dont know why you would want to restore a backup of a corrupted database.
Just build them all again if you indeed need to.

But I will also mention a good number were not truly AUR packages.
snapd v86d mhwd-nvidia
krunner5 pyside2 python-hid-parser python-mock python-shiboken2 electron25 if you are on Stable.
etc.

Besides those the rest are all git packages it may be noted.

(and I similarly wonder if they are installed on purpose…)

Besides that you still must handle your pacnews, including some that will change how your packages/repositories are synced.

Thank you for your engagement here, I’m doing my best to follow. I think I have a few new questions at this point:

Just build them all again if you indeed need to.

How do I go about it? My understanding was that pamac installed a good number of packages in my system and now it lost track of all of them. Do I need to manually reinstall all the packages? Should I restore the backup first to list all the packages I had before? Is this the solution that @Mirdarthos proposed?

But I will also mention a good number were not truly AUR packages.

I’m not sure how that happened. I was using almost exclusively the UI for package management, I’m not sure how I ended up in this place.

Besides those the rest are all git packages it may be noted.

I would guess they were installed as dependencies? Not sure.

Besides that you still must handle your pacnews, including some that will change how your packages/repositories are synced.

How do I do this? Until very recently I have lived in a naive assumption that everything is auto-magically handled for me by the powers of whatever lies behind the UI updater, my system has been fairly stable and updated for almost 5 years now.

Apologies for n00b questions, I’m trying to both solve the issue and understand how it happened to avoid it in the future.

Its all explained in the wiki.

If you want a magic GUI thing then manjaro-pacnew-checker exists, though I cannot vouch for it.
I use pacdiff+meld. As is shown in the wiki … and literally hundreds of forum posts here.

A quick example (and assuming no pre-existing configuration)

DIFFPROG=meld pacdiff -s

Of course it requires meld be installed, as well as pacman-contrib for pacdiff.

You will NEED to handle your pacnews.

This generally entails comparing the new defaults with your existing configurations.
The idea is to preserve important local options while importing new standards.

An example will be pacman.conf - the pacnew will show the removal of the community repo.
Such changes MUST be made to keep your system in sync.

Other pacnews can have important impacts on your applications or system in general - but pacman.conf.pacnew is explicitly linked to how you install and update packages.

If you dont know … then they should probably be removed, but first we should make sure of some things.

Please tell me if you are on Stable branch or not.

pacman-mirrors -G

Once we have verified your branch status I can give you removal/rebuild commands as necessary.

Thank you, I’ll follow up with the wiki.

Yup, I’m on stable

❯ pacman-mirrors -G
stable

If on stable and no inherent/known need for the extra git packages then we can point at reinstalling the repo equivalents to be sure. Lets sort mirrors and use pacman first also for good measure;

sudo pacman-mirrors -f && sudo pacman -Syu game-devices-udev pamac-tray-icon-plasma yay zsh-theme-powerlevel10k faudio ckbcomp pyside2 krunner5 python-hid-parser mhwd-nvidia python-mock python-shiboken2 electron25 v86d snapd

I will mention the 3 llvm llvm-libs clang … they are compiler things with repo equivalents.
But I dont think you actually want them. If you do add them to the string above.

Now try to remove everything that doesnt have a reason for being;

sudo pacman -Rns clang-opencl-headers-minimal-git clang-build-analyzer-git clang-format-static-bin clangd-opt-git clang-libs-minimal-git clang-format-linter-git llvm-rocm-git llvm-git clang-minimal-git llvm-libs-minimal-git llvm-libs-rocm-git llvm-libs-git

You can check pamac again.

pamac update

But it would appear those were all the AUR packages.

Here’s the output of those commands:

sudo pacman-mirrors -f && sudo pacman -Syu game-devices-udev pamac-tray-icon-plasma yay zsh-theme-powerlevel10k faudio ckbcomp pyside2 krunner5 python-hid-parser mhwd-nvidia python-mock python-shiboken2 electron25 v86d snapd
[sudo] password for artur: 
::INFO Downloading mirrors from Manjaro
::INFO => Mirror pool: https://repo.manjaro.org/mirrors.json
::INFO => Mirror status: https://repo.manjaro.org/status.json
::INFO Using custom mirror file
::INFO Querying mirrors - This may take some time
  0.231 Poland         : https://ftp.psnc.pl/linux/manjaro/
::INFO Writing mirror list
::Poland          : https://ftp.psnc.pl/linux/manjaro/stable/$repo/$arch
::INFO Mirror list generated and saved to: /etc/pacman.d/mirrorlist
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
warning: game-devices-udev-0.22-2 is up to date -- reinstalling
warning: pamac-tray-icon-plasma-0.1.3-2 is up to date -- reinstalling
warning: yay-12.3.0-1 is up to date -- reinstalling
warning: zsh-theme-powerlevel10k-1.20.0-1 is up to date -- reinstalling
warning: faudio-24.03-1 is up to date -- reinstalling
warning: ckbcomp-1.215-1 is up to date -- reinstalling
warning: pyside2-5.15.12-1 is up to date -- reinstalling
warning: krunner5-5.115.0-1 is up to date -- reinstalling
warning: python-hid-parser-0.0.3-2 is up to date -- reinstalling
warning: mhwd-nvidia-550.67-1 is up to date -- reinstalling
warning: python-mock-3.0.5-11 is up to date -- reinstalling
warning: python-shiboken2-5.15.12-1 is up to date -- reinstalling
warning: electron25-25.9.8-5 is up to date -- reinstalling
warning: v86d-0.1.10-7 is up to date -- reinstalling
warning: snapd-2.61.2-1 is up to date -- reinstalling
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (15) ckbcomp-1.215-1  electron25-25.9.8-5  faudio-24.03-1  game-devices-udev-0.22-2  krunner5-5.115.0-1  mhwd-nvidia-550.67-1  pamac-tray-icon-plasma-0.1.3-2  pyside2-5.15.12-1
              python-hid-parser-0.0.3-2  python-mock-3.0.5-11  python-shiboken2-5.15.12-1  snapd-2.61.2-1  v86d-0.1.10-7  yay-12.3.0-1  zsh-theme-powerlevel10k-1.20.0-1

Total Download Size:    82,93 MiB
Total Installed Size:  336,87 MiB
Net Upgrade Size:        0,00 MiB

:: Proceed with installation? [Y/n] Y
:: Retrieving packages...
 electron25-25.9.8-5-x86_64                                                                          59,7 MiB  9,25 MiB/s 00:06 [#############################################################################] 100%
 snapd-2.61.2-1-x86_64                                                                               11,9 MiB  6,40 MiB/s 00:02 [#############################################################################] 100%
 pyside2-5.15.12-1-x86_64                                                                             9,4 MiB  6,79 MiB/s 00:01 [#############################################################################] 100%
 zsh-theme-powerlevel10k-1.20.0-1-x86_64                                                           1022,4 KiB  4,27 MiB/s 00:00 [#############################################################################] 100%
 krunner5-5.115.0-1-x86_64                                                                          405,3 KiB  3,04 MiB/s 00:00 [#############################################################################] 100%
 python-shiboken2-5.15.12-1-x86_64                                                                  200,2 KiB  1711 KiB/s 00:00 [#############################################################################] 100%
 faudio-24.03-1-x86_64                                                                              128,7 KiB  1609 KiB/s 00:00 [#############################################################################] 100%
 v86d-0.1.10-7-x86_64                                                                                56,2 KiB   802 KiB/s 00:00 [#############################################################################] 100%
 ckbcomp-1.215-1-any                                                                                 55,2 KiB   877 KiB/s 00:00 [#############################################################################] 100%
 python-hid-parser-0.0.3-2-any                                                                       52,3 KiB   654 KiB/s 00:00 [#############################################################################] 100%
 game-devices-udev-0.22-2-any                                                                        29,5 KiB   527 KiB/s 00:00 [#############################################################################] 100%
 pamac-tray-icon-plasma-0.1.3-2-x86_64                                                               26,2 KiB   345 KiB/s 00:00 [#############################################################################] 100%
 mhwd-nvidia-550.67-1-any                                                                            25,1 KiB   628 KiB/s 00:00 [#############################################################################] 100%
 Total (13/13)                                                                                       82,9 MiB  7,43 MiB/s 00:11 [#############################################################################] 100%
(15/15) checking keys in keyring                                                                                                [#############################################################################] 100%
(15/15) checking package integrity                                                                                              [#############################################################################] 100%
(15/15) loading package files                                                                                                   [#############################################################################] 100%
(15/15) checking for file conflicts                                                                                             [#############################################################################] 100%
(15/15) checking available disk space                                                                                           [#############################################################################] 100%
:: Processing package changes...
( 1/15) reinstalling game-devices-udev                                                                                          [#############################################################################] 100%
( 2/15) reinstalling pamac-tray-icon-plasma                                                                                     [#############################################################################] 100%
( 3/15) reinstalling yay                                                                                                        [#############################################################################] 100%
( 4/15) reinstalling zsh-theme-powerlevel10k                                                                                    [#############################################################################] 100%
( 5/15) reinstalling faudio                                                                                                     [#############################################################################] 100%
( 6/15) reinstalling ckbcomp                                                                                                    [#############################################################################] 100%
( 7/15) reinstalling python-shiboken2                                                                                           [#############################################################################] 100%
( 8/15) reinstalling pyside2                                                                                                    [#############################################################################] 100%
( 9/15) reinstalling krunner5                                                                                                   [#############################################################################] 100%
(10/15) reinstalling python-hid-parser                                                                                          [#############################################################################] 100%
(11/15) reinstalling v86d                                                                                                       [#############################################################################] 100%
(12/15) reinstalling mhwd-nvidia                                                                                                [#############################################################################] 100%
(13/15) reinstalling python-mock                                                                                                [#############################################################################] 100%
(14/15) reinstalling electron25                                                                                                 [#############################################################################] 100%
(15/15) reinstalling snapd                                                                                                      [#############################################################################] 100%
:: Running post-transaction hooks...
(1/8) Reloading system manager configuration...
(2/8) Reloading user manager configuration...
(3/8) Creating temporary files...
(4/8) Reloading device manager configuration...
(5/8) Arming ConditionNeedsUpdate...
(6/8) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'default'
==> Using configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64.img
==> Starting build: '5.15.154-1-MANJARO'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [encrypt]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: '/boot/initramfs-5.15-x86_64.img'
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'fallback'
==> Using configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64-fallback.img -S autodetect
==> Starting build: '5.15.154-1-MANJARO'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'qed'
==> WARNING: Possibly missing firmware for module: 'bfa'
==> WARNING: Possibly missing firmware for module: 'qla1280'
==> WARNING: Possibly missing firmware for module: 'qla2xxx'
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [encrypt]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: '/boot/initramfs-5.15-x86_64-fallback.img'
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux61.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-6.1-x86_64 -g /boot/initramfs-6.1-x86_64.img --microcode /boot/intel-ucode.img
==> Starting build: '6.1.85-1-MANJARO'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'xhci_pci'
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [encrypt]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: '/boot/initramfs-6.1-x86_64.img'
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux61.preset: 'fallback'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-6.1-x86_64 -g /boot/initramfs-6.1-x86_64-fallback.img -S autodetect --microcode /boot/intel-ucode.img
==> Starting build: '6.1.85-1-MANJARO'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'qed'
==> WARNING: Possibly missing firmware for module: 'bfa'
==> WARNING: Possibly missing firmware for module: 'qla2xxx'
==> WARNING: Possibly missing firmware for module: 'qla1280'
==> WARNING: Possibly missing firmware for module: 'xhci_pci'
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [encrypt]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: '/boot/initramfs-6.1-x86_64-fallback.img'
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux66.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-6.6-x86_64 -g /boot/initramfs-6.6-x86_64.img --microcode /boot/intel-ucode.img
==> Starting build: '6.6.26-1-MANJARO'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'xhci_pci'
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [encrypt]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: '/boot/initramfs-6.6-x86_64.img'
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux66.preset: 'fallback'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-6.6-x86_64 -g /boot/initramfs-6.6-x86_64-fallback.img -S autodetect --microcode /boot/intel-ucode.img
==> Starting build: '6.6.26-1-MANJARO'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'qed'
==> WARNING: Possibly missing firmware for module: 'bfa'
==> WARNING: Possibly missing firmware for module: 'qla2xxx'
==> WARNING: Possibly missing firmware for module: 'qla1280'
==> WARNING: Possibly missing firmware for module: 'xhci_pci'
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [encrypt]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: '/boot/initramfs-6.6-x86_64-fallback.img'
==> Image generation successful
(7/8) Reloading system bus configuration...
(8/8) Updating the desktop file MIME type cache...


sudo pacman -Rns clang-opencl-headers-minimal-git clang-build-analyzer-git clang-format-static-bin clangd-opt-git clang-libs-minimal-git clang-format-linter-git llvm-rocm-git llvm-git clang-minimal-git llvm-libs-minimal-git llvm-libs-rocm-git llvm-libs-git
error: target not found: clang-opencl-headers-minimal-git
error: target not found: clang-build-analyzer-git
error: target not found: clang-format-static-bin
error: target not found: clangd-opt-git
error: target not found: clang-libs-minimal-git
error: target not found: clang-format-linter-git
error: target not found: llvm-rocm-git
error: target not found: llvm-git
error: target not found: clang-minimal-git
error: target not found: llvm-libs-minimal-git
error: target not found: llvm-libs-rocm-git
error: target not found: llvm-libs-git
pamac update

❯ pamac update
Preparing…
Synchronizing package databases…
Refreshing AUR…
Nothing to do.
Transaction successfully finished.

Still pamac sees nothing, which I understand is not the desired scenario. This is all run after that previous pamac update --force-refresh cleared the list of packages visible to pamac.

oooh. So they werent ever installed?
I suppose they were trying to be built to be installed then, probably due to some quirk of dependencies while the sync status was askew (and that pamac has AUR enabled and does both at the same time).

So in that sense you have nothing to do then. At least in terms of foreign packages.

We can check, by asking pacman to print all foreign (not in repos) packages:

pacman -Qm

Sure thing, here’s the output:

pacman -Qm

❯ pacman -Qm
android-studio 2023.3.1.18-1
arduino-beta-bin 2.0.0b11-2
bcompare 4.4.7.28397-1
bcompare-kde5 4.4.7.28397-1
breath2-wallpaper 1.0.18-5
brscan4 0.4.11_1-2
calcmysky 0.3.2-1
cantata 2.5.0-5
celt 0.11.3-6
chiaki 2.2.0-2
ckan-bin 1.34.4-1
cpu-checker-bzr r41-5
datagrip 2024.1.2-1
davinci-resolve 18.6.6-2
debtap 3.5.1-1
docker-desktop 4.29.0-1
etcd 3.5.13-1
gcc10 1:10.3.0-2
gcc10-libs 1:10.3.0-2
git-extras 7.2.0-1
gklib 5.1.1-4
gnome-icon-theme 3.12.0-7
gnome-icon-theme-symbolic 3.12.0-6
google-chrome 124.0.6367.155-1
google-cloud-sdk 404.0.0-1
gtk-theme-breath 5.9.0-1
java11-openjfx 11.0.20.u1-1
js78 78.15.0-4
kolide-launcher-git v1.0.8.r1.g92da4fb5-1
lib32-faudio 24.05-1
lib32-libwrap 7.6.31-4
lib32-lzo 2.10-2
lib32-openssl-1.0 1.0.2.u-3
lib32-simplescreenrecorder 0.4.4-1
libgweather 40.0+r87+g80e5a652-2
libopenaptx 0.2.0-1
libsidplay 1.36.59-10
libwrap 7.6.32-1
logiops 0.3.3-1
makemkv 1.17.6-1
manjaro-documentation-en 20181009-1
manjaro-firmware 20160419-1
masterpdfeditor-free 4.3.89-1
metis 5.2.1-2
mingw-w64-tools 10.0.0-1
nordvpn-bin 3.17.4-1
noto-fonts-compat 20151217-1
oh-my-zsh r5951.86f805280-1
openssl-1.0 1.0.2.u-6
postman-agent 0.4.17-1
pycharm-professional 2024.1.1-1
python-jarowinkler 2.0.1-2
python-launchpadlib 1.11.0-1
python-lazr-restfulclient 0.14.6-1
python-lazr-uri 1.0.6-2
python-pep517 0.13.1-2
python-progress 1.6-8
python-rapidfuzz-capi 1.0.5-6
python-wadllib 1.3.6-3
python2 2.7.18-10
python38 3.8.19-1
python39 3.9.19-1
qt5-webkit 5.212.0alpha4-22
simplescreenrecorder 0.4.4-2
slack-desktop 4.38.115-1
spotify 1:1.2.31.1205-2
spotify-tui 0.25.0-4
stellarium 24.1-1
sublime-text-3 3.3211-5
sublime-text-4 4.4169-2
synology-assistant 7.0.4_50051-1
synology-drive 3.4.0_15724-1
systemd-fsck-silent 239-1
transcode 1.1.7-44
vmware-keymaps 1.0-3
zoom 6.0.2-1

Well you do have foreign packages. :sweat_smile:

But not the ones that were listed above. So I think the guess of ‘proposed packages’ was correct.

But you do have some things you probably should not.

Those are all ‘super-aliens’ that dont exist in the repos or the AUR and should probably be removed.

I did not go through every package on that list … but I would suspect many are also unwanted. Like multiple old pythons, old ssl, etc.

I think everything *breath* is just a theme. I’m pretty sure I didn’t explicitly install manjaro-documentation or manjaro-firmware or systemd-fsck-silent from non-repo/non-aur sources.
What should I do next then? :thinking:

They were in the repos/aur at one point, but are not any longer.
You may notice for example that the firmware package was built in 2016.

Another quick check for you might be orphans.

pacman -Qdt

‘Orphans’ are packages that were installed as a dependency of another package, but are now not required by any installed package. Usually these should be safe to be removed, though it can happen that a package that was installed as a dependency is actually desirable but not marked ‘explicit’.

I see, thanks for explanation!

There is a lot of orphans here:

pacman -Qdt
❯ pacman -Qdt
alsa-card-profiles 1:1.0.3-1
ant 1.10.14-1
appstream-glib 0.8.2-3
asciidoc 10.2.0-4
asciidoctor 2.0.20-1
breath2-wallpaper 1.0.18-5
breezy 3.3.5-1
cargo-audit 0.20.0-1
cbindgen 0.26.0-1
celt 0.11.3-6
check 0.15.2-2
clang15 15.0.7-2
coffeescript 2.7.0-1
crypto++ 8.9.0-1
cunit 2.1.3-3
cxxbridge 1.0.118-1
debugedit 5.0-5
dkms 3.0.12-1
electron25 25.9.8-5
embree3 3.13.5-2
extra-cmake-modules 5.115.0-1
fcgi 2.4.2-2
fontforge 20230101-3
gcc10 1:10.3.0-2
gn 0.2143.a2e2717e-1
gnome-bluetooth 3.34.5+r16+g61cfff1c-2
gnome-shell-extension-appindicator 1:57-1
go 2:1.22.0-1
gobject-introspection 1.78.1-1
gperf 3.1-5
gptfdisk 1.0.10-1
gradle7 7.6.4-1
groovy 4.0.18-1
gtest 1.14.0-1
gtk-theme-breath 5.9.0-1
icon-naming-utils 0.8.90-5
intltool 0.51.0-6
ipset 7.20-1
java11-openjfx 11.0.20.u1-1
jq 1.7.1-1
js102 102.15.0-1
js78 78.15.0-4
js91 91.13.0-1
kdsoap-ws-discovery-client 0.4.0-1
kgamma 5.27.11-1
ldns 1.8.3-2
leveldb 1.23-3
lib32-alsa-oss 1.1.8-4
lib32-attr 2.5.2-1
lib32-dconf 0.40.0-3
lib32-faudio 24.05-1
lib32-libgusb 0.4.8-1
lib32-libvpx 1.14.0-1
lib32-libwrap 7.6.31-4
lib32-libxslt 1.1.39-1
lib32-lz4 1.9.4-1
lib32-lzo 2.10-2
lib32-openssl-1.0 1.0.2.u-3
lib32-pcre 8.45-3
lib32-polkit 124-1
lib32-rest 0.8.1-4
lib32-rust-libs 1:1.76.0-1
lib32-smpeg 2.0.0-1
libcroco 0.6.13-2
libgit2 1:1.7.2-1
libgtop 2.41.3-1
libgweather 40.0+r87+g80e5a652-2
libical 3.0.17-2
libindi 2.0.6-1
libindicator-gtk3 12.10.1-10
liblouis 3.29.0-1
libofa 0.9.3-9
libopenaptx 0.2.0-1
librabbitmq-c 0.11.0-2
librdkafka 2.3.0-1
libsidplay 1.36.59-10
libvisual 0.4.2-1
lld 16.0.6-1
lua52 5.2.4-6
lua53 5.3.6-2
meson 1.3.2-1
metis 5.2.1-2
mingw-w64-gcc 13.1.0-1
mingw-w64-tools 10.0.0-1
mono-msbuild 16.10.1.xamarinxplat.2021.05.26.14.00-4
nasm 2.16.01-1
nm-connection-editor 1.36.0-1
noto-fonts-compat 20151217-1
openbabel 3.1.1-7
patchelf 0.18.0-1
perl-mozilla-ca 20231213-1
perl-parse-yapp 1.21-6
png++ 0.2.10-2
python-appdirs 1.4.4-9
python-asn1crypto 1.5.1-3
python-async-timeout 4.0.3-1
python-bcrypt 4.1.2-1
python-beaker 1.12.0-4
python-cherrypy 18.8.0-3
python-clikit 0.6.2-9
python-commonmark 0.9.1-9
python-contextlib2 21.6.0-2
python-defusedxml 0.7.1-5
python-elasticsearch 7.9.0-5
python-entrypoints 0.4-3
python-exceptiongroup 1.2.0-1
python-flask-restful 0.3.9-5
python-flit-core 3.9.0-2
python-google-api-python-client 2.111.0-1
python-hid-parser 0.0.3-2
python-isodate 0.6.1-3
python-jarowinkler 2.0.1-2
python-launchpadlib 1.11.0-1
python-lazy-object-proxy 1.10.0-1
python-magic 1:0.4.27-3
python-mock 3.0.5-11
python-nose 1.3.7-15
python-nspektr 0.5.0-1
python-pecan 1.4.2-3
python-pep517 0.13.1-2
python-pkgconfig 1.5.5-5
python-prettytable 3.10.0-1
python-progress 1.6-8
python-prometheus_client 0.20.0-1
python-py 1.11.0-4
python-pycodestyle 2.11.1-1
python-pyjwt 2.8.0-1
python-pylint 3.1.0-1
python-pytest-cov 4.1.0-1
python-rapidfuzz-capi 1.0.5-6
python-resolvelib 1.0.1-1
python-retrying 1.3.4-1
python-scikit-build 0.17.6-2
python-scikit-learn 1.4.1.post1-1
python-setproctitle 1.3.3-1
python-sphinx 7.2.6-1
python-tenacity 8.2.3-1
python-testpath 0.6.0-2
python-wrapt 1.16.0-1
python-xlib 0.33-2
python-xmlsec 1.3.13-4
qt5-doc 5.15.12-1
qt5-webkit 5.212.0alpha4-22
rabbitmq 3.12.10-1
sof-firmware 2023.12.1-1
spirv-headers 1:1.3.275.0-1
valgrind 3.22.0-3
vmware-keymaps 1.0-3
wayland-protocols 1.33-1
wxsqlite3 4.9.8-1
xmlstarlet 1.6.1-3
xmlto 0.0.28-4
xorg-server-xvfb 21.1.12-0
yarn 1.22.21-1
yasm 1.3.0-6
yelp-tools 42.1-1
zip 3.0-11
zita-alsa-pcmi 0.6.1-1
zita-resampler 1.11.2-1

Is there anything I should do with the orphans and the packages removed from repos over time?

The bulk are minor lib or python packages

There are a few that I might want to keep, like alsa-card-profiles and sof-firmware.

For any you want to keep - mark them as explicitly installed.

sudo pacman -D --asexplicit PACKAGENAME

Then you can remove all orphans at once with

sudo pacman -Rns $(pacman -Qdtq)

For packages that dont exist in any repo … they are very ripe for removal.
Unless you have some good local reason for keeping them they should all be uninstalled.