Removed xdg-utils (and lots more) - how to get back to state before?

I think have been dumb, again.

I installed via Pamac xdg-utils-terminal-true-git to try to resolve an issue with PIA update requesting a terminal compatible with x-terminal-emulator after reading this

It didn’t work so I uninstalled xdg-utils-terminal-true-git but was horrified to watch loads of other things being uninstalled

The log is below

Is there an easy way to get back to the state before my mishap?


[2020-12-17T08:21:38+0000] [ALPM] removed xdg-utils (1.1.3+19+g9816ebb-1)
[2020-12-17T08:21:38+0000] [ALPM] installed xdg-utils-terminal-true-git (r772.4aa0178-1)
[2020-12-17T08:21:38+0000] [ALPM] transaction completed
[2020-12-17T08:21:38+0000] [ALPM] running '30-systemd-update.hook'...
[2020-12-17T08:22:58+0000] [ALPM] running 'gconf-remove.hook'...
[2020-12-17T08:22:58+0000] [ALPM] transaction started
[2020-12-17T08:22:59+0000] [ALPM] removed kio (5.76.0-1)
[2020-12-17T08:23:00+0000] [ALPM] removed kvantum-manjaro (0.13.5-1)
[2020-12-17T08:23:00+0000] [ALPM] removed qt5-websockets (5.15.2-1)
[2020-12-17T08:23:00+0000] [ALPM] removed beanshell (2.0b6-3)
[2020-12-17T08:23:01+0000] [ALPM] removed kwallet (5.76.0-1)
[2020-12-17T08:23:01+0000] [ALPM] removed knotifications (5.76.0-1)
[2020-12-17T08:23:01+0000] [ALPM] removed libdbusmenu-qt5 (0.9.3+16.04.20160218-5)
[2020-12-17T08:23:01+0000] [ALPM] removed qt5-webkit (5.212.0alpha4-8)
[2020-12-17T08:23:01+0000] [ALPM] removed phonon-qt4 (4.10.3-1)
[2020-12-17T08:23:02+0000] [ALPM] removed mcomix-git (r1495.486f02e-1)
[2020-12-17T08:23:40+0000] [ALPM] removed qt5-wayland (5.15.2-1)
[2020-12-17T08:23:40+0000] [ALPM] removed solid (5.76.0-1)
[2020-12-17T08:23:41+0000] [ALPM] removed gramps (2:5.1.3-1)
[2020-12-17T08:23:42+0000] [ALPM] removed calibre (5.6.0-1)
[2020-12-17T08:23:42+0000] [ALPM] removed python-pyqtwebengine (5.15.2-1)
[2020-12-17T08:23:42+0000] [ALPM] removed catfish (1.4.13-3)
[2020-12-17T08:23:43+0000] [ALPM] removed qt5-script (5.15.2-1)
[2020-12-17T08:23:43+0000] [ALPM] removed menulibre (2.2.1-2)
[2020-12-17T08:23:44+0000] [ALPM] removed filezilla (3.46.3-1)
[2020-12-17T08:23:44+0000] [ALPM] removed qpdfview (0.4.18-2)
[2020-12-17T08:23:44+0000] [ALPM] removed kid3-qt (3.8.4-1)
[2020-12-17T08:23:44+0000] [ALPM] removed kjobwidgets (5.76.0-1)
[2020-12-17T08:23:44+0000] [ALPM] removed ktextwidgets (5.76.0-1)
[2020-12-17T08:23:44+0000] [ALPM] removed kcompletion (5.76.0-1)
[2020-12-17T08:23:44+0000] [ALPM] removed sonnet (5.76.0-1)
[2020-12-17T08:23:44+0000] [ALPM] removed jdk8-openjdk (8.u265-1)
[2020-12-17T08:23:45+0000] [ALPM] removed jre8-openjdk (8.u265-1)
[2020-12-17T08:23:45+0000] [ALPM] removed kid3-common (3.8.4-1)
[2020-12-17T08:23:45+0000] [ALPM] removed qt5-tools (5.15.2-1)
[2020-12-17T08:23:45+0000] [ALPM] removed kbookmarks (5.76.0-1)
[2020-12-17T08:23:45+0000] [ALPM] removed kxmlgui (5.76.0-1)
[2020-12-17T08:23:45+0000] [ALPM] removed kglobalaccel (5.76.0-1)
[2020-12-17T08:23:45+0000] [ALPM] removed kiconthemes (5.76.0-1)
[2020-12-17T08:23:45+0000] [ALPM] removed kitemviews (5.76.0-1)
[2020-12-17T08:23:45+0000] [ALPM] removed kconfigwidgets (5.76.0-1)
[2020-12-17T08:23:45+0000] [ALPM] removed kwidgetsaddons (5.76.0-1)
[2020-12-17T08:23:45+0000] [ALPM] removed kguiaddons (5.76.0-1)
[2020-12-17T08:23:45+0000] [ALPM] removed kcodecs (5.76.0-1)
[2020-12-17T08:23:45+0000] [ALPM] removed qt5-translations (5.15.2-1)
[2020-12-17T08:23:45+0000] [ALPM] removed barrier (2.3.3-1)
[2020-12-17T08:23:46+0000] [ALPM] removed qt5-sensors (5.15.2-1)
[2020-12-17T08:23:46+0000] [ALPM] removed manjaro-settings-manager-notifier (0.5.6-10)
[2020-12-17T08:23:46+0000] [ALPM] removed manjaro-settings-manager (0.5.6-10)
[2020-12-17T08:23:46+0000] [ALPM] removed kauth (5.76.0-1)
[2020-12-17T08:23:46+0000] [ALPM] removed polkit-qt5 (0.113.0-2)
[2020-12-17T08:23:46+0000] [ALPM] removed kitemmodels (5.76.0-1)
[2020-12-17T08:23:46+0000] [ALPM] removed manjaro-xfce-settings (20200811-1)
[2020-12-17T08:23:46+0000] [ALPM] removed qt5ct (1.1-1)
[2020-12-17T08:23:46+0000] [ALPM] removed qt5-styleplugins (
[2020-12-17T08:23:46+0000] [ALPM] removed attica (5.76.0-1)
[2020-12-17T08:23:46+0000] [ALPM] removed poppler-qt5 (20.10.0-1)
[2020-12-17T08:23:47+0000] [ALPM] removed kded (5.76.0-1)
[2020-12-17T08:23:47+0000] [ALPM] removed kservice (5.76.0-1)
[2020-12-17T08:23:47+0000] [ALPM] removed kcrash (5.76.0-1)
[2020-12-17T08:23:47+0000] [ALPM] removed kdbusaddons (5.76.0-1)
[2020-12-17T08:23:47+0000] [ALPM] removed kconfig (5.76.0-1)
[2020-12-17T08:23:47+0000] [ALPM] removed qt5-xmlpatterns (5.15.2-1)
[2020-12-17T08:23:47+0000] [ALPM] removed manjaro-pulse (20200126-1)
[2020-12-17T08:23:47+0000] [ALPM] removed pulseaudio-equalizer (14.0-1)
[2020-12-17T08:23:47+0000] [ALPM] removed python-pyqt5 (5.15.2-1)
[2020-12-17T08:23:47+0000] [ALPM] removed python2-pyqt4 (4.12.3-4)
[2020-12-17T08:23:47+0000] [ALPM] removed pyqt4-common (4.12.3-4)
[2020-12-17T08:23:48+0000] [ALPM] removed qt4 (4.8.7-29.1)
[2020-12-17T08:23:48+0000] [ALPM] removed karchive (5.76.0-1)
[2020-12-17T08:23:48+0000] [ALPM] removed qt5-speech (5.15.2-1)
[2020-12-17T08:23:48+0000] [ALPM] removed ki18n (5.76.0-1)
[2020-12-17T08:23:48+0000] [ALPM] removed vlc (
[2020-12-17T08:23:49+0000] [ALPM] removed kvantum-theme-matchama (20191118-1)
[2020-12-17T08:23:49+0000] [ALPM] removed kvantum-qt5 (0.17.0-1)
[2020-12-17T08:23:49+0000] [ALPM] removed kwindowsystem (5.76.0-1)
[2020-12-17T08:23:49+0000] [ALPM] removed qt5-svg (5.15.2-1)
[2020-12-17T08:23:49+0000] [ALPM] removed qt5-multimedia (5.15.2-1)
[2020-12-17T08:23:49+0000] [ALPM] removed kcoreaddons (5.76.0-1)
[2020-12-17T08:23:49+0000] [ALPM] removed qt5-x11extras (5.15.2-1)
[2020-12-17T08:23:49+0000] [ALPM] removed qt5-webengine (5.15.2-1)
[2020-12-17T08:23:50+0000] [ALPM] removed qt5-webchannel (5.15.2-1)
[2020-12-17T08:23:50+0000] [ALPM] removed qt5-location (5.15.2-1)
[2020-12-17T08:23:50+0000] [ALPM] removed pyside2 (5.15.2-1)
[2020-12-17T08:23:50+0000] [ALPM] removed qt5-declarative (5.15.2-1)
[2020-12-17T08:23:51+0000] [ALPM] removed qt5-base (5.15.2-1)
[2020-12-17T08:23:51+0000] [ALPM] removed xdg-utils-terminal-true-git (r772.4aa0178-1)
[2020-12-17T08:23:51+0000] [ALPM] transaction completed

Good read

You could parse the log taking only lines with the date and removed - then create a list with only the package names and feed them to pacman.

Something like this

$ cat /var/log/pacman.log | grep  -e '2020-12-17' | grep -e 'removed' | awk '{ print $4 }' > ~/packages.txt

Examine the file and feed the list to pacman

$ sudo pacman -Syu - < ~/packages.txt

Didn’t you get a list of what was going to be removed before you confirmed the transaction?

@linux-aarhus Thanks - I will read that and try that approach
@merlock Yup, I was dumb.

No, actually you removed xdg-utils.

So, while you thought you were removing xdg-utils-terminal-true-git, you were actually removing xdg-utils…and it looks like that list of extra packages might’ve been optional dependencies of it.

As an aside…you have tagged your OP with XFCE. Do you really need what appears to be QT/KDE cruft?

Not yet. Everyone has their Oh, #%@& moments (anyone that tries to say different is a fscking liar)-your humble correspondent actually smoked a monitor in my early linux days (I won’t talk about the various horrors with fat-fingered dd commands). :slight_smile:

However, it appears you don’t have a working backup. If this doesn’t motivate you into fighting for a front row pew in the “Church of Backups”, then:




I did that and managed to reinstall them all - except for I had to take out a handful that gave a target not found error, and then installed them manually via Pamac (they were the AUR ones?) I do not know if I needed them but installed them for completeness (phonon-qt4, python2-pyqt4, pyqt4-common). I do check for orphans regularly so presumably they were there for a reason?

I also read the System Maintenance Wiki and some pages linked from it.

Thanks again.

I have sawn off a tree branch whilst sitting on the wrong end as a small kid and have continued in this fashion, learning much along the way
I installed Timeshift and timeshift-autosnap but am a little worried as when researching this I read that if I have to restore I may mess up the grub for my Win10 dual-boot (needed for work software, unfortunately).

1 Like

So wait, huh? This is baffling. Why didn’t @Leighs simply attempt to reinstall xdg-utils and when prompted about the conflict, accept and have xdg-utils-terminal-true-git removed?

This is what I got:

> sudo pacman -S xdg-utils
[sudo] password for -REDACTED-: 
resolving dependencies...
looking for conflicting packages...
:: xdg-utils and xdg-utils-terminal-true-git are in conflict. Remove xdg-utils-terminal-true-git? [y/N]

Prompting yes for that should then resolve installing XDG Utils from official repos without issues.