Archive for January, 2008

How to uninstall packages with apt

Decorative PictureInstalling packages with apt is generally very easy. Uninstalling (or removing) packages can be slightly more annoying.

The standard command for removing packages with apt is

apt-get remove <package-name>

This should always work as long as

  • The package doesn’t have dependencies
  • The commands needed to remove the package execute correctly.

Note that this leaves all the configuration files in place – so that if you decide to reinstall the packages again at a later date they should be configured exactly as before.

If you want to remove these configuration files for some reason (for example if you’ve completely destroyed them by your editting) then you purge the package instead with:

apt-get --purge remove <package-name>

Things that can go wrong

You don’t know the name of the package

This can be more of a probably than one might at first envisage – and it is definitely annoying when it happens. To find the package name you can use apt-cache, a command for returning information from the local cache of all available packages.

apt-cache search <keyword regex>

searches for all packages in the repository that contain the regular expression in their name of description and returns a list. Performing

apt-cache search <word> | less

and then searching for other relevant words using “/<other-word>” can be a very effective way of finding package names.

If you are getting too many results you might like to try

apt-cache --names-only search <keyword>

which will only search the package name and not the description.

Advertisements

January 28, 2008 at 12:17 pm Leave a comment

Svn history bash script

This is a quick and ugly script to download the complete revision history of a file using svn. All kind of obvious – but it might save someone some typing and reading of the svn documentation.

It takes a single file name in a local copy of an svn repository , and then downloads all previous revisions labelling with indexes 0, 1 et, with 0 being the most recent.

(more…)

January 10, 2008 at 3:17 pm Leave a comment

Patterns – A list of forces

This page http://g.oswego.edu/dl/pd-FAQ/pd-FAQ.html contains a list of programming forces that patterns resolve.

It might act as a useful checklist… or might be far too handwaving in nature.

January 4, 2008 at 7:19 pm Leave a comment


January 2008
M T W T F S S
« Dec   Feb »
 123456
78910111213
14151617181920
21222324252627
28293031