L
L
luxter2015-09-09 15:39:39
linux
luxter, 2015-09-09 15:39:39

Remove all packages that have xfce in their name. how?

I want to remove xfce, but it doesn't work correctly, I guess.
OS is ubuntu.
What I did:
# apt-get -purge autoremove xfce4
But with pom. aptitude search xfce4 found a bunch of packages, removed them using aptitude purge ~ixfce4, but they still show up when searching.
Actually, after the reboot, the native unit is loaded and everything is fine, but I would like to remove the remaining traces.
How else can I remove all packages at once, in the name of which there is a mention of xfce4?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andre la'Balm, 2015-09-10
@luxter

sudo apt-get remove `dpkg -l | grep xfce | grep ^ii | awk '{print $2}'`
dpkg -l list all packages
grep xfce | grep ^ii - select lines where there is "xfce" and which start with "ii"
awk '{print $2}' - isolate only the second column (separation character space or tab)
well, actually using ` ` we feed this list to apt-get remove
after that, you can also run sudo apt-get autoremove, clean up unnecessary installed dependencies

A
Andrey Nikiforov, 2015-09-09
@eoffsock

sudo apt-get purge xfconf xfce4-utils xfwm4 xfce4-session thunar xfdesktop4 exo-utils xfce4-panel xfce4-terminal

askubuntu.com/questions/59640/how-can-i-completely...

M
Maxim Terentiev, 2015-09-13
@maxitso

aptitude purge ~nxfce

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question