Welcome!

Please read this important information about Spectre and Meltdown vulnerabilities.
Please read this important information about MX sources lists.

News
  • MX Linux on social media: here
  • Mepis support still here
Current releases
  • MX-17.1 Final release info here
  • antiX-17 release info here
New users
  • Please read this first, and don't forget to add system and hardware information to posts!
  • Read Forum Rules

Many non-free packages installed by default.

Message
Author
User avatar
kmathern
Forum Veteran
Forum Veteran
Posts: 9242
Age: 59
Joined: Wed Jul 12, 2006 2:26 pm

Re: Many non-free packages installed by default.

#11 Postby kmathern » Thu Jan 11, 2018 2:23 pm

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
Forum Regular
Forum Regular
Posts: 101
Joined: Mon Aug 25, 2014 9:40 am

Re: Many non-free packages installed by default.

#12 Postby Raymzap » Sun Jan 21, 2018 8:57 am

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."


Return to “General”

Who is online

Users browsing this forum: Eadwine Rose and 1 guest