2

Possible Duplicate:
Delete old packages from local repository

I want to create a private repository for Ubuntu.
I executed the command dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz and successfully created my repository. After a few days, I updated my ubuntu and put the downloaded archives from /var/cache/apt to my personal repository. Again I executed the above command to update my repository, but it shown some issues with versions (multiple versions for same program). I tried with -m switch to allow multiple versions, and it was successfully created the repository.

My questions is, can I automatically remove the older versions from my personal Ubuntu repository (It could save my disk space)

Hari
  • 133
  • 6

1 Answers1

1

If I am understanding the question correctly I would recommend that you use apt-mirror

This can mirror whole Ubuntu distributions or just ppa's if you want.

It keeps the repo up to date, so you do not have to worry about keeping the versions up to date manually.

You basically just need to run one command every time to update.

ender
  • 220