LinuxQuestions.org
Review your favorite Linux distribution.
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 05-28-2015, 01:31 AM   #1
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Rep: Reputation: 110Reputation: 110
Track changes in program installation?


I always use Synaptic to install new software and I have the habit of clicking "Show Details" then copying and pasting that list of changes into a document before clicking "Apply." I do that because if I don't like the program, I know exactly what to remove: the program and its dependencies, but not dependencies that were already there before the installation.

I wonder if there is a smarter way to do that (for Debian).
 
Old 05-28-2015, 01:37 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

I use "apt-get autoremove" and sometimes look in /var/log/apt/history.log.

Evo2.

---------- Post added 2015-05-28 at 15:37 ----------

Hi,

I use "apt-get autoremove" and sometimes look in /var/log/apt/history.log.

Evo2.
 
1 members found this post helpful.
Old 05-28-2015, 02:01 AM   #3
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Original Poster
Rep: Reputation: 110Reputation: 110
Excellent. Short of a tool that will do the selective uninstallation for me (which I rarely ever do), this is perfect. At least I don't have to take notes manually anymore.
 
Old 05-28-2015, 02:12 AM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by lucmove View Post
Excellent. Short of a tool that will do the selective uninstallation for me (which I rarely ever do)
That is what "apt-get autoremove" does - it will remove packages that you did not actually request to be installed. For example if you install package x, and package x depends on y and z which are not already on your system, you can then remove packages, x, y and z by doing:
Code:
apt-get remove x
apt-get autoremove
Evo2.
 
1 members found this post helpful.
Old 05-28-2015, 03:40 PM   #5
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
Quote:
Originally Posted by evo2 View Post
Code:
apt-get remove x
apt-get autoremove
Or just use:
Code:
# aptitude remove <name of package>
(aptitude auto-autoremoves)

Or:
Code:
# aptitude purge <name of package>
To remove the package and all of it's associated configuration and data files.
 
1 members found this post helpful.
Old 05-28-2015, 05:34 PM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by Head_on_a_Stick View Post
Or just use:
Code:
# aptitude remove <name of package>
(aptitude auto-autoremoves)

Or:
Code:
# aptitude purge <name of package>
To remove the package and all of it's associated configuration and data files.
It is generally bad practice to use both apt-get and aptitude since aptitude uses its own database for things like held packages. I think it is fine to use aptitude but I find apt-get more to my liking and it is the tool Debian recommends (since the release of squeeze) for non-interactive package management.

Evo2.
 
1 members found this post helpful.
Old 05-28-2015, 05:39 PM   #7
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by Head_on_a_Stick View Post
Or just use:
Code:
# aptitude remove <name of package>
(aptitude auto-autoremoves)

Or:
Code:
# aptitude purge <name of package>
To remove the package and all of it's associated configuration and data files.
It is generally bad practice to use both apt-get and aptitude since aptitude uses its own database for things like held packages. I think it is fine to use aptitude but I find apt-get more to my liking and it is the tool Debian recommends (since the release of squeeze) for non-interactive package management.

Evo2.
 
  


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
Can I track bandwidth use by program? Chriswaterguy Linux - Networking 2 06-16-2008 10:32 AM
problem with Back Track 2 installation kriogenic Linux - Newbie 4 05-06-2007 02:55 PM
Program to track amount of network usage jpc82 Linux - Software 3 02-10-2006 07:29 AM
Shuttle program back on track! kencaz General 4 07-13-2005 05:37 PM
I need to find an audio recording program with more than one track robster Linux - Software 7 02-23-2004 01:49 AM

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

All times are GMT -5. The time now is 02:08 PM.

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