1- Create a directory for you local repository, e.g.
2- Move the RPMs into that directory.
3-Fix some ownership and file system permissions:
/home/user/repo.
2- Move the RPMs into that directory.
3-Fix some ownership and file system permissions:
# chown -R root.root /home/user/repo4- Install the createrepo package if not installed yet, and run
# createrepo /home/user/repo5- Create a repository configuration file, e.g. /etc/yum.repos.d/myrepo.repo containing
# chmod -R o-w+r /home/user/repo
[local]6- Install your package using
name=My Awesome Repo
baseurl=file:///home/user/repo
enabled=1
gpgcheck=0
# yum install packagename
No comments:
Post a Comment