Let's create a /usr/local/bin/local-repo script:
#!/bin/bash REPODIR=/tmp/local-repo mkdir -p $REPODIR koji download-build $1 createrepo -d .And local repository config file /etc/yum.repos.d/local-updates-testing.repo
[local-updates-testing] name=Local $releasever - $basearch - Test Updates failovermethod=priority baseurl=file:///tmp/local-repo/ enabled=0 gpgcheck=0 metadata_expire=10Now if you want to download the latest package:
# local-repo pkgname-ver-rel # yum --enablerepo=local-updates-testing updateNote that if you want to use the repository for something large than /tmp is probably not the best place :-)
No comments:
Post a Comment