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 Both sides next revision
create_your_repository [2015/05/03 22:23]
stephdl
create_your_repository [2015/05/03 23:01]
stephdl [Create Repoview]
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 /​var/​www/​vhosts/​de-labrusse.fr/​mirror/​smeserver
 +or
 +  repomanage --keep=1 --new /​var/​www/​vhosts/​de-labrusse.fr/​mirror/​smeserver
 +
 +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 /​var/​www/​vhosts/​de-labrusse.fr/​mirror/​smeserver) -rf
  
 =====Sign your RPM===== =====Sign your RPM=====
create_your_repository.txt ยท Last modified: 2019/06/05 21:48 (external edit)