cleaning old packages from my local repo

Need help with C, C++, perl, python, etc?

cleaning old packages from my local repo

Postby Dargor » 2007-01-28 06:02

hey i have a local repository(testing) which i have made from collecting the .deb's from /var/cache/apt/archive and moving them to /debmirror/etchrepo/ . Now after some time performing dist-upgrade's i have obsolete versions of the same package.
ie;
adduser_3.100_all.deb
adduser_3.101_all.deb

my man searches have revealed nothing and i was wondering if perhaps there are some cool options i could use in a bash(or other) script, unless there is a program that will do this for me.
User avatar
Dargor
 
Posts: 671
Joined: 2006-08-14 08:54
Location: New Zealand, Hamilton

Postby hcgtv » 2007-01-28 06:10

apt-get autoclean does a pretty good job of it.
Bert Garcia - When all you have is a keyboard
User avatar
hcgtv
 
Posts: 518
Joined: 2006-11-17 23:03
Location: Charlotte, NC

Postby Dargor » 2007-01-28 10:40

ok, that would work but.. the machine is not on the net, only haveing the local repo in apt/sources.list, apt-get autoclean sounds like it will not be appropriate
User avatar
Dargor
 
Posts: 671
Joined: 2006-08-14 08:54
Location: New Zealand, Hamilton

Postby DeanLinkous » 2007-01-28 12:55

Have you considered setting up your repo with apt-move instead of just draggin the packages around? apt-move IIRC will remove the obsolete, it also creates proper mirror structure and so forth...

apt-move
Aye, fight and you may fail, sellout, and you may live, a while. And dying in your MScash beds, you'll be willin' to trade ALL the cash, to come back here and tell our enemies that they may FUD our customers, but they'll never take...OUR FREEDOM!
User avatar
DeanLinkous
 
Posts: 1611
Joined: 2006-06-04 15:28

Postby Dargor » 2007-01-28 22:59

not untill now, it was working just fine.
User avatar
Dargor
 
Posts: 671
Joined: 2006-08-14 08:54
Location: New Zealand, Hamilton


Return to Programming

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable