One important thing is that on CentOS/RHEL 6 or earlier, you will need to install a separate yum plugin (called yum-plugin-downloadonly) to be able to use -downloadonly command option: $ sudo yum install yum-plugin-downloadonly Note that if a package to download has any unmet dependencies, yum will download all dependent packages as well. If you want to download a package to a specific directory (e.g., /tmp): $ sudo yum install -downloadonly -downloaddir=/tmp In the above, is the name of the repository (e.g., base, fedora, updates) from which the package is downloaded. $ sudo yum install -downloadonly īy default, a downloaded RPM package will be saved in: /var/cache/yum/x86_64///packages The standard yum command offers -downloadonly option for this purpose. The yum command itself can be used to download a RPM package. ![]() Here is how to download an RPM package from yum repositories. What if you want to download a RPM package without installing it on the system? For example, you may want to archive some RPM packages for later use or to install them on another machine. Using yum, you can install or update a RPM package while resolving its package dependencies automatically. Yum is the default package manager for Red Hat based systems, such as CentOS, Fedora or RHEL. ![]() ![]() Can I use yum command to download a RPM package without installing it? Question: I want to download a RPM package from Red Hat's standard repositories.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |