Answer the question
In order to leave comments, you need to log in
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
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
sudo apt-get purge xfconf xfce4-utils xfwm4 xfce4-session thunar xfdesktop4 exo-utils xfce4-panel xfce4-terminal
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question