Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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)

share|improve this question

marked as duplicate by Eliah Kagan, RobotHumans, belacqua, Mitch, RolandiXor Aug 22 '12 at 20:09

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

I saw an almost same question in…. But The answer is not looking good for me – Hari Jul 5 '12 at 5:17
Nobody is answering!!! – Hari Jul 7 '12 at 9:23
Than maybe no one knows an answer. Instead of writing comments like yours, you should try to edit your original question to include more information of what you tried and what the problem is. Also please have a look at these links, as they might be relevant to your problem: ,… ,… – con-f-use Aug 18 '12 at 15:05
up vote 1 down vote accepted

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.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.