Welcome!
Important information
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.1 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4 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

How to completely remove software package along with dependencies ?

Help for Current Versions of MX
User avatar
linux_user
Forum Novice
Forum  Novice
Posts: 2
Joined: Thu Jan 10, 2019 1:46 pm

How to completely remove software package along with dependencies ?

#1

Post by linux_user » Thu Jan 10, 2019 2:02 pm

Hi folks!
I am new to mxlinux. Just downloaded and tried the live version. It is good but there are software preinstalled in mxlinux which I don't need at all. Like for example games, smtube, adobe flash, msttcorefonts etc. I would like to remove them completely along with their dependencies. How do I do that?
thanks

skidoo
Forum Guide
Forum Guide
Posts: 1161
Joined: Tue Sep 22, 2015 6:56 pm

Re: How to completely remove software package along with dependencies ?

#2

Post by skidoo » Thu Jan 10, 2019 2:13 pm

You'll find "howto" in the MX Linux User Manual -- section 5.3.1
"Installing and removing packages"

User avatar
linux_user
Forum Novice
Forum  Novice
Posts: 2
Joined: Thu Jan 10, 2019 1:46 pm

Re: How to completely remove software package along with dependencies ?

#3

Post by linux_user » Fri Jan 11, 2019 5:09 am

Any package (let's say VLC) marked for uninstall in synaptic uninstalls / removes just that package, not all the dependencies that were installed with it !
I want to know if there is a way to uninstall/remove the dependencies that were installed at the time of install of VLC.
thanks

philotux
Forum Regular
Forum Regular
Posts: 425
Joined: Sun Apr 22, 2018 12:57 pm

Re: How to completely remove software package along with dependencies ?

#4

Post by philotux » Fri Jan 11, 2019 5:22 am

I use

Code: Select all

sudo apt purge --autoremove PACKAGE
but before the actual run, I run a simulation to see what will be removed:

Code: Select all

sudo apt purge --autoremove PACKAGE -s
If I am not mistaken, this will not remove the config files of the package in question.
You might want to wait for confirmation on the suitability of this approach from more experienced forum members.

User avatar
dphn
Forum Regular
Forum Regular
Posts: 162
Joined: Sun Nov 25, 2018 7:26 am

Re: How to completely remove software package along with dependencies ?

#5

Post by dphn » Fri Jan 11, 2019 6:06 am

philotux wrote:
Fri Jan 11, 2019 5:22 am
I use

Code: Select all

sudo apt purge --autoremove PACKAGE
but before the actual run, I run a simulation to see what will be removed:

Code: Select all

sudo apt purge --autoremove PACKAGE -s
If I am not mistaken, this will not remove the config files of the package in question.
You might want to wait for confirmation on the suitability of this approach from more experienced forum members.
purge package (removes package + config-files)

autoremove --purge (removes packages + config-files of all packages from the autoremove command)
for those with an eye for the finer details...

philotux
Forum Regular
Forum Regular
Posts: 425
Joined: Sun Apr 22, 2018 12:57 pm

Re: How to completely remove software package along with dependencies ?

#6

Post by philotux » Fri Jan 11, 2019 6:11 am

dphn wrote:
Fri Jan 11, 2019 6:06 am
purge package (removes package + config-files)

autoremove --purge (removes packages + config-files of all packages from the autoremove command)
Thanks dphn for the explanation!

cheers,
philotux

User avatar
asqwerth
Forum Veteran
Forum Veteran
Posts: 4319
Joined: Sun May 27, 2007 5:37 am

Re: How to completely remove software package along with dependencies ?

#7

Post by asqwerth » Fri Jan 11, 2019 6:13 am

dphn wrote:
Fri Jan 11, 2019 6:06 am
...
autoremove --purge (removes packages + config-files of all packages from the autoremove command)
Problem is that once in a while the autoremove command could cause the removal of packages that are actually still needed....

see the recent nvidia hooha.

I think that targeted removal of selected packages plus their config files is safer.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

philotux
Forum Regular
Forum Regular
Posts: 425
Joined: Sun Apr 22, 2018 12:57 pm

Re: How to completely remove software package along with dependencies ?

#8

Post by philotux » Fri Jan 11, 2019 6:19 am

asqwerth wrote:
Fri Jan 11, 2019 6:13 am

I think that targeted removal of selected packages plus their config files is safer.
That would be

Code: Select all

sudo apt purge --autoremove
?

User avatar
asqwerth
Forum Veteran
Forum Veteran
Posts: 4319
Joined: Sun May 27, 2007 5:37 am

Re: How to completely remove software package along with dependencies ?

#9

Post by asqwerth » Fri Jan 11, 2019 6:54 am

Oops, I overlooked the double dashes before your "autoremove" tag.

Yes, I believe you're right that if you

sudo apt purge --autoremove [packagename]

that will relate only to that targeted package.

It's the main autoremove command (no dashes) that I don't really trust.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

philotux
Forum Regular
Forum Regular
Posts: 425
Joined: Sun Apr 22, 2018 12:57 pm

Re: How to completely remove software package along with dependencies ?

#10

Post by philotux » Fri Jan 11, 2019 6:59 am

asqwerth wrote:
Fri Jan 11, 2019 6:54 am
It's the main autoremove command (no dashes) that I don't really trust.
I am being cautious about this, beginning to realize that it can be a bit tricky, removing stuff that can still be needed as you mentioned above.

Thanks for further clarifying!
philotux

Post Reply

Return to “MX Help”