Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

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!
-- Here are the Forum Rules

Many non-free packages installed by default.

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

Re: Many non-free packages installed by default.

#11 Post by 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: 104
Joined: Mon Aug 25, 2014 9:40 am

Re: Many non-free packages installed by default.

#12 Post by 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."

Post Reply

Return to “General”