The officially official Devuan Forum!

You are not logged in.

#1 2021-05-08 15:30:56

Excalibur
Member
Registered: 2019-03-07
Posts: 15  

Using Aptitude config options to keep your system clean.

If you use Aptitude as your package manager here are some configuration options you can place in your /etc/apt/apt.conf file to automatically keep your system free of unneeded packages and configuration files.

Aptitude::Autoclean-After-Update "true";
Aptitude::Clean-After-Install "true";
Aptitude::Purge-Unused "true";
APT::AutoRemove::SuggestsImportant "false";

Offline

#2 2021-05-09 11:04:31

MLEvD
Member
Registered: 2021-02-14
Posts: 140  

Re: Using Aptitude config options to keep your system clean.

Excalibur wrote:

Aptitude::Autoclean-After-Update "true";
Aptitude::Clean-After-Install "true";
Aptitude::Purge-Unused "true";
APT::AutoRemove::SuggestsImportant "false";

CAT::Please-Do-Not-The "false";

OR

what do these do please?

Last edited by MLEvD (2021-05-09 11:04:57)

Offline

#3 2021-05-09 11:12:06

dice
Member
Registered: 2020-11-22
Posts: 559  
Website

Re: Using Aptitude config options to keep your system clean.

MLEvD wrote:
Excalibur wrote:

Aptitude::Autoclean-After-Update "true";
Aptitude::Clean-After-Install "true";
Aptitude::Purge-Unused "true";
APT::AutoRemove::SuggestsImportant "false";

CAT::Please-Do-Not-The "false";

OR

what do these do please?

I dont use aptitude but the last once is explained here: https://askubuntu.com/questions/351085/ … d-packages

Last edited by dice (2021-05-09 11:13:25)

Offline

#4 2021-05-10 13:15:42

Excalibur
Member
Registered: 2019-03-07
Posts: 15  

Re: Using Aptitude config options to keep your system clean.

In answer to MLEvD's query:-

Aptitude::Autoclean-After-Update "true"; - this will remove downloaded packages after an update.

Aptitude::Clean-After-Install "true"; - ditto for when installing new packages.

Aptitude::Purged-Unused "True"; - this will remove unwanted packages and in particular package configuration files for packages that have been removed.

APT::AutoRemove::SuggestsImportant "false"; - this affects the APT package management in its entirety and no just Aptitude. A contrived example is needed: if package 'A' installs package 'B' as a Recommends then it could well set up a transitive relationship where package 'B' is a Suggests for package 'C'. Upon removal of package 'A', normally package 'B' would also be removed as part of the dependency checking mechanism. However, Aptitude will detect that package 'B' is a Suggests of package 'C' and will not remove package 'B'. This setting removes this restriction, so that Suggests will be removed. Suggests packages are not installed as a dependency, so it is safe to do this.

I hope this helps.

Offline

#5 2021-06-19 10:31:57

MLEvD
Member
Registered: 2021-02-14
Posts: 140  

Re: Using Aptitude config options to keep your system clean.

Thank you, and can one use "1" in place of "true"?

Offline

#6 2021-06-23 11:42:19

Excalibur
Member
Registered: 2019-03-07
Posts: 15  

Re: Using Aptitude config options to keep your system clean.

As I recall from Aptitude's documentation you can only use "true" and "false". However, it has been awhile since I have read the relevant documentation and therefore I might be wrong. (Sorry for the delay in my reply but I have been somewhat busy).

Offline

Board footer