Differences between revisions 18 and 19
Revision 18 as of 2011-11-23 13:43:17
Size: 1938
Editor: ?tuxfolder
Comment:
Revision 19 as of 2015-06-30 18:09:22
Size: 2089
Editor: TomRoche
Comment: both aptitude and apt-get support '-s', root -> sudo
Deletions are marked like this. Additions are marked like this.
Line 16: Line 16:
1. Open a root console window
2. Type "dpkg-reconfigure <package>" where package is the name of the package
1. Open a console aka terminal
2. Type "sudo dpkg-reconfigure <package>" where package is the name of the package
Line 22: Line 22:
This is a really neat function of dpkg. Basically, if you want to find out what debian package a particular binary belongs to, do the following: If you want to find out what debian package a particular binary belongs to, do the following:
Line 25: Line 25:
1. Open a console window 1. Open a console aka terminal
Line 29: Line 29:
== Simulate Upgrades == == Simulate operations ==
Line 31: Line 31:
With apt-get you can simulate an upgrade - that is - show which packages would be installed if you did upgrade. Both `aptitude` and `apt-get` support the commandline switch `--simulate` aka `-s`. This allows one to see what packages would be installed, removed, upgraded, etc by a given operation, without actually doing it. E.g., to see which packages would be installed if you do an upgrade,
Line 34: Line 34:
1. Open a root console window
2. Type "apt-get -s upgrade"
1. Open a console aka terminal
2. Type "sudo apt-get -s upgrade"
Line 43: Line 43:
1. Open a root console window
2. Type "apt-get clean"
1. Open a console aka terminal
2. Type "sudo apt-get clean"
Line 49: Line 49:
1. Open a root console window
2. Type "apt-get autoclean"
1. Open a console aka terminal
2. Type "sudo apt-get autoclean"

Translation(s): Dutch - English - Français - Italiano - 한국어(Korean)


Further Apt Tools:

(Note the following commands are executed from a command line interface or CLI, also known as a terminal or a console window. A root console in GNOME can most likely be found at "Applications -> System Tools-> Root Terminal", and "Applications -> System Tools-> Terminal" for a normal user console.)

Configure packages

When packages are installed, you are asked to configure them via a wizard (note: most packages don't require configuration). To reconfigure packages, do this:

1. Open a console aka terminal
2. Type "sudo dpkg-reconfigure <package>" where package is the name of the package

Find what package a binary belongs to

If you want to find out what debian package a particular binary belongs to, do the following:

1. Open a console aka terminal 
2. Type "dpkg -S /bin/foo" where /bin/foo is the full path to the binary

Simulate operations

Both aptitude and apt-get support the commandline switch --simulate aka -s. This allows one to see what packages would be installed, removed, upgraded, etc by a given operation, without actually doing it. E.g., to see which packages would be installed if you do an upgrade,

1. Open a console aka terminal
2. Type "sudo apt-get -s upgrade"

Delete used package files

If you want to delete the package files (.deb files) you've already installed (via apt-get install) then you can do the following (and retrieve a lot of disk space!):

1. Open a console aka terminal
2. Type "sudo apt-get clean"

If you want to retain a local cache of the most recent versions, you may use a variation to retrieve some space:

1. Open a console aka terminal
2. Type "sudo apt-get autoclean"

This will clear the local repository of all the extra packages which can't be downloaded and are largely useless.