Thursday, January 1, 2009

Adding a cdrom source to /etc/apt/sources.list

Just a quick response to someone needing help with apt sources. This particular person is using ubuntu 5.04 server edition and since the repos are not maintained anymore he needs to install some packages from the cdrom itself.

To do this is quite simple. First if you don't want to modify your /etc/apt/sources.list the move it with the following command to a backup.

sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak

Simply make sure the cd you want to add is in the drive then simply execute;

sudo apt-cdrom add

A few moments later the packages on the cdrom will be cataloged and accessable to apt.

Hope that helps!

No comments:

Post a Comment