Welcome!
Important information
-- Required MX 15/16 Repository Changes
-- 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.2 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4.1 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
dphn
Forum Regular
Forum Regular
Posts: 165
Joined: Sun Nov 25, 2018 7:26 am

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

#11

Post by dphn » Fri Jan 11, 2019 12:04 pm

asqwerth wrote:
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.
thx, asqwerth

But the problem are not the config-files. The problem are the removed packages via autoremove. When dependencies are not correctly set by the maintainers or you have additional 3rd party repos, autoremove can be a bad surprise.

Same thing are orphaned packages. Look about your system with deborphan --guess-all. It's possible that you need some of the listed packages from this command.

For example install dconf-editor on a Xfce-DE. dconf-editor is an app for use with GTK3 based DEs, so Xfce didn't need it for configurations, the DE is based on GTK2 toolkit so far. Without a dependency dconfeditor is an orphaned package but it could be useful. This app can also editing configurations from apps and they based mostly on GTK3.
for those with an eye for the finer details...

User avatar
Buck Fankers
Forum Regular
Forum Regular
Posts: 333
Joined: Sat Mar 10, 2018 9:06 pm

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

#12

Post by Buck Fankers » Fri Jan 11, 2019 6:35 pm

asqwerth wrote:
Fri Jan 11, 2019 6:54 am
sudo apt purge --autoremove [packagename]
Writing down, thanks!
I'm assuming this command removes not needed & used dependencies also?

User avatar
Buck Fankers
Forum Regular
Forum Regular
Posts: 333
Joined: Sat Mar 10, 2018 9:06 pm

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

#13

Post by Buck Fankers » Fri Jan 11, 2019 6:36 pm

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

Code: Select all

sudo apt purge --autoremove PACKAGE -s
Simulation, perfect, thanks!

User avatar
Sparky
Forum Regular
Forum Regular
Posts: 337
Joined: Sun Dec 23, 2018 7:07 pm

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

#14

Post by Sparky » Fri Jan 11, 2019 7:08 pm

Buck Fankers wrote:
Fri Jan 11, 2019 6:35 pm
asqwerth wrote:
Fri Jan 11, 2019 6:54 am
sudo apt purge --autoremove [packagename]
Writing down, thanks!
I'm assuming this command removes not needed & used dependencies also?
Is this confirmed?
MX Linux Asus F552, 12GB RAM, 1TB HDD

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

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

#15

Post by asqwerth » Fri Jan 11, 2019 10:08 pm

https://wiki.debian.org/DebianPackageManagement

Go to above link and ctrl-F search for "purge" on that page. Should be the second or third appearance of said word.

Then read carefully before doing anything. You're responsible for the maintenance of your own system.
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

Post Reply

Return to “MX Help”