Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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, hbdgaf, belacq, 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 askubuntu.com/questions/110646/…. 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: askubuntu.com/q/170348/17789 , askubuntu.com/questions/9809/… , askubuntu.com/questions/3503/… –  con-f-use Aug 18 '12 at 15:05

1 Answer 1

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.