Many non-free packages installed by default.

Message
Author
User avatar
kmathern
Developer
Posts: 2409
Joined: Wed Jul 12, 2006 2:26 pm

Re: Many non-free packages installed by default.

#11 Post by kmathern »

RE: exasperated by spaces
This will remove all the non-free packages

Code: Select all

vrms | grep Contrib -B99999 | grep ^[a-z] | awk '{print $1}' | xargs sudo apt-get purge --force-yes -y -V --trivial-only
If you want to remove all the packages that vrms lists (both contrib & non-free), omit the first grep

Code: Select all

vrms | grep ^[a-z] | awk '{print $1}' | xargs sudo apt-get purge --force-yes -y -V --trivial-only
The commands posted above will stop short of actually removing the non-free and/or contrib packages, they'll show a summary instead.
Rerunning the command(s) again without the "--trivial-only" option will do it for real (make sure you really want to do it).



As far as removal of additional dependent packages goes I'm only seeing that the ddm-mx and acroread-debian-files packages would be removed initially on my MX-16 install, several others though are listed as 'autoremovable'.

User avatar
Raymzap
Posts: 54
Joined: Mon Aug 25, 2014 9:40 am

Re: Many non-free packages installed by default.

#12 Post by Raymzap »

kmathern wrote:
RE: exasperated by spaces
This will remove all the non-free packages

Code: Select all

vrms | grep Contrib -B99999 | grep ^[a-z] | awk '{print $1}' | xargs sudo apt-get purge --force-yes -y -V --trivial-only
If you want to remove all the packages that vrms lists (both contrib & non-free), omit the first grep

Code: Select all

vrms | grep ^[a-z] | awk '{print $1}' | xargs sudo apt-get purge --force-yes -y -V --trivial-only
The commands posted above will stop short of actually removing the non-free and/or contrib packages, they'll show a summary instead.
Rerunning the command(s) again without the "--trivial-only" option will do it for real (make sure you really want to do it).



As far as removal of additional dependent packages goes I'm only seeing that the ddm-mx and acroread-debian-files packages would be removed initially on my MX-16 install, several others though are listed as 'autoremovable'.
Cheers kmathern, that's excellent. Thanks. :cool2:
GNU/Linux User #470660

Linus Torvalds: "Microsoft isn't evil, they just make really crappy operating systems."

Post Reply

Return to “General”