Advertisement
Guest User

Create RHEL repositary

a guest
Feb 7th, 2013
1,061
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.37 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. _repo1=i386
  4. _repo2=i686
  5. _repo3=x86_64
  6.  
  7. printf "\n* Signing Repositary *\n"
  8. rpm --quiet --quiet --resign $_repo1/*.rpm
  9. rpm --quiet --quiet --resign $_repo2/*.rpm
  10. rpm --quiet --quiet --resign $_repo3/*.rpm
  11.  
  12. printf "\n* Create repodata *\n"
  13. rm -rf $_repo1/repodata $_repo2/repodata $_repo3/repodata
  14. createrepo $_repo1
  15. createrepo $_repo2
  16. createrepo $_repo3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement