[Yum] repo utility added to download/misc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
 I decided to write something some folks had asked me for quite a bit.

it's called repomanage.py - you pass it a dir and an option (--old or --
new) and it will output either the old packages in that dir, or the
newest packages in that dir.

it's useful if you want to do things like:

repomanage.py --old /some/place | xargs rm -f 

to get rid of old packages in a repository.

or
for file in `repomanage.py --new /some/place`
 do
  cp -a $file /my/new/distro/dir
 done

to create a dir full of only the latest rpms.

It keys on name+arch so you'll get the latest rpms of every arch.

it's dirt simple and maybe it will be useful to someone.

http://linux.duke.edu/yum/download/misc/repomanage.py

thanks,
-sv




[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux