![]() Gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 ![]() Note that for CentOS7 the gpgkey would be named "7" instead of "6": # vi /etc//offline-httpd.repo Generate the metadata needed to turn our new pile of RPMs into a YUM repo and clean up the stuff we no longer need: # createrepo -database /var/tmp/httpdĬonfigure the download directory as a repo. You should have seen the size of the full-repo downloads! # yum install -downloadonly -installroot=/var/tmp/httpd-installroot -releasever=6 -downloaddir=/var/tmp/httpd httpd Note that for CentOS7 releasever would be "7". Yum will create some metadata in there, but we're going to throw it all away. This uses the installroot trick suggested here to force a full download of all dependencies since nothing is installed in that empty root. Install the stuff you need and make a place to put the downloaded RPMs: # yum install yum-plugin-downloadonly yum-utils createrepoÄownload the RPMs. This process was tested on both CentOS6 and CentOS7. Here's a specific example using "httpd" as the package to download and install.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |