LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-30-2017, 01:31 PM   #1
annadane
Member
 
Registered: Dec 2016
Posts: 46

Rep: Reputation: Disabled
On uninstall, does it make more sense to remove or remove completely?


I mean packages, not the OS
 
Old 01-30-2017, 01:40 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
It depends on whether you think you might reinstall the package at a future date and therefore want to keep the configuration files.

Personally, however, I always remove the package completely:

sudo apt-get --purge autoremove packagename

This removes the package, its configuration files, and any dependent packages that are no longer used by any other packages.

If you want to go the whole hog, you can also remove the user-specific configuration files/directories which you normally find in (often hidden) subdirectories in your home directory e.g. /home/hydrurga/.Skype/ for the Skype package.

Last edited by hydrurga; 01-30-2017 at 01:42 PM.
 
Old 01-30-2017, 01:53 PM   #3
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,007
Blog Entries: 26

Rep: Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522
Quote:
Originally Posted by hydrurga View Post
It depends on whether you think you might reinstall the package at a future date and therefore want to keep the configuration files.

Personally, however, I always remove the package completely:

sudo apt-get --purge autoremove packagename

This removes the package, its configuration files, and any dependent packages that are no longer used by any other packages.

If you want to go the whole hog, you can also remove the user-specific configuration files/directories which you normally find in (often hidden) subdirectories in your home directory e.g. /home/hydrurga/.Skype/ for the Skype package.
Agreed. If you're uninstalling to test something, then I keep configs, otherwise I always use purge.
 
Old 01-30-2017, 02:00 PM   #4
annadane
Member
 
Registered: Dec 2016
Posts: 46

Original Poster
Rep: Reputation: Disabled
Is apt-get --purge autoremove packagename the same as complete removal within the package manager?
 
Old 01-30-2017, 02:11 PM   #5
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by annadane View Post
Is apt-get --purge autoremove packagename the same as complete removal within the package manager?
If you're talking about Synaptic, no. Complete removal doesn't autoremove the unused dependencies, so is more the equivalent of:

sudo apt-get purge packagename
 
Old 01-30-2017, 02:31 PM   #6
annadane
Member
 
Registered: Dec 2016
Posts: 46

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
If you're talking about Synaptic, no. Complete removal doesn't autoremove the unused dependencies, so is more the equivalent of:

sudo apt-get purge packagename
Does an apt-get autoremove do the trick as well? (Without package name, just "apt-get autoremove")
 
Old 01-30-2017, 02:47 PM   #7
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by annadane View Post
Does an apt-get autoremove do the trick as well? (Without package name, just "apt-get autoremove")
Yes. autoremove (whether used as apt-get autoremove or as the --autoremove option) removes all unused dependencies.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error in uninstall make squid, how should I remove it then? Niceman2005 Linux - Software 5 07-03-2009 02:09 AM
remove directory completely ramesh_manu Linux - Newbie 3 03-05-2007 11:27 AM
Completely remove Gnome? android6011 Linux - Software 1 10-16-2006 03:15 PM
How to remove software completely ? naihe2010 Linux - Software 5 10-17-2005 12:01 AM
Remove fetchmailconf completely Buttercups Linux - Software 0 01-28-2003 11:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration