This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
create_your_repository [2015/05/03 20:23] stephdl |
create_your_repository [2019/06/05 19:48] (current) |
||
---|---|---|---|
Line 53: | Line 53: | ||
*/36 * | */36 * | ||
+ | =====Clean Your repository===== | ||
+ | |||
+ | first we need to install yum-utils, take a look to the [[http:// | ||
+ | yum install yum-utils | ||
+ | |||
+ | Now we will use repomanage, this command is only made to list either old or new package, matter of choice. | ||
+ | |||
+ | repomanage --keep=2 --old / | ||
+ | or | ||
+ | repomanage --keep=1 --new / | ||
+ | |||
+ | here I want to list and keep only two versions of each rpm. Put this command in a cron job | ||
+ | |||
+ | rm $(repomanage --keep=2 --old / | ||
=====Sign your RPM===== | =====Sign your RPM===== |