User Tools

Site Tools


create_your_repository

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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    *                         repoview  /var/www/vhosts/myrepo.xxx/mirror/smeserver/6   */36    *                         repoview  /var/www/vhosts/myrepo.xxx/mirror/smeserver/6
  
 +=====Clean Your repository=====
 +
 +first we need to install yum-utils, take a look to the [[http://linux.die.net/man/1/yum-utils|documentation]], it is really interesting
 +  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 /your/path/to/folder
 +or
 +  repomanage --keep=1 --new /your/path/to/folder
 +
 +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 /your/path/to/folder) -rf
  
 =====Sign your RPM===== =====Sign your RPM=====
create_your_repository.1430684604.txt.gz ยท Last modified: 2019/06/05 19:48 (external edit)