LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Track changes in program installation? (https://www.linuxquestions.org/questions/debian-26/track-changes-in-program-installation-4175543815/)

lucmove 05-28-2015 01:31 AM

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).

evo2 05-28-2015 01:37 AM

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.

lucmove 05-28-2015 02:01 AM

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.

evo2 05-28-2015 02:12 AM

Hi,
Quote:

Originally Posted by lucmove (Post 5368573)
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.

Head_on_a_Stick 05-28-2015 03:40 PM

Quote:

Originally Posted by evo2 (Post 5368577)
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.

evo2 05-28-2015 05:34 PM

Hi,
Quote:

Originally Posted by Head_on_a_Stick (Post 5368980)
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.

evo2 05-28-2015 05:39 PM

Hi,
Quote:

Originally Posted by Head_on_a_Stick (Post 5368980)
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.


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