Saving Installed Packages Before Reinstalling Feisty

maman durahman durahman at
Fri May 25 09:38:11 UTC 2007

2007/5/25, Arnold Pietersen <arnold.pietersen at>:
> I want to reinstall Feisty.  However, I want to save the packages which
> I installed to a CD so that when I reinstall Feisty, I can reinstall
> those packages from CD instead of having to go on the Internet;
> bandwidth is a problem.  Is it possible? If so, how?

I copy this article from Whre i have practiced
it on my local area network. And it's work. Please cek and hope can

Re: How to Create Local Repository on Hard Disk
I'll describe a few steps I made to construct my personal repository.
My current setup is:

- Ubuntu 'Warty' installed with Internet access (at work)
- Ubuntu 'Warty' installed without Internet access (at home)

Using the usual Ubuntu repositories, I updated the system and
installed some packages I wanted (ruby, apache, mysql, etc). You don't
need to install that on the host system, just use the apt-get's
download only option. All files downloaded from repositories are in
the /var/cache/apt/archives directory in the host system. I did these

1. Created /opt/repo directory (could be the home directory)
2. Created the directory /opt/repo/binary (copied from Debian specs)
3. Copied all debs from my update from /var/cache/apt/archives to
4. Executed dpkg-scanpackages like this:
# pwd
# dpkg-scanpackages binary /dev/null | gzip -9c > binary/Packages.gz
5. Burned a CD with its contents

For use that in my standalone host, I did this:
# apt-cdrom add

I think it's all.



More information about the ubuntu-users mailing list