Debian apt cdrom

This is how I create apt cdrom in order to save disk spaces. I do this when my /var/cache/apt/archives reach 700Mb, so I create a cdrom that I will add to /etc/atp/sources.list with apt-cdrom add.

I don’t know if it’s the right Debian way but it works. If you have something better, use the comments. 🙂

I move all deb files into a directory (lets call it /home/davide/cd), then

sudo dpkg-scanpackages /home/davide/cd /dev/null | gzip /home/davide/cd/Packages.gz

Then take all the files within the /home/davide/cd directory and burn a cd.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s