I had to install a software on a server without internet access. The solution is to download all dependencies needed to a folder and create a repo.
yum install --downloadonly --downloaddir=<directory> <package>
For example:
yum install --downloadonly --downloaddir=/opt/mysoftware emacs
If needed, custom repository could be created. Use createrepo tool for this.
cd /opt/mysoftware
createrepo .
yum install --downloadonly --downloaddir=<directory> <package>
For example:
yum install --downloadonly --downloaddir=/opt/mysoftware emacs
If needed, custom repository could be created. Use createrepo tool for this.
cd /opt/mysoftware
createrepo .
No comments:
Post a Comment