In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to download only the RPM package without installing it in the CentOS system". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to download only the RPM package without installing it in the CentOS system.
Yum is usually used to install and resolve dependent packages. If a server cannot connect to the external network or the yum source is not set up, you want to download these RPM packages through another server and then install them. So how do I use the yum tool to download the RPM package?
Use yum
To use the-- downloadonly option, you need to install yum-plugin-downloadonly first. If you do not install the package, the following error message will be reported: Command line error: no such option:-- downloadonly
The code is as follows:
# yum install yum-plugin-downloadonly
Then use the following command to download the package
The code is as follows:
# yum install-downloadonly RPM_Name
The downloaded files are located in the / var/cache/yum/x86_64/6/ directory, depending on the system version.
You can also specify the directory to download, as follows:
The code is as follows:
# yum install-downloadonly-downloaddir=/ttlsa RPM_Name
At the same time, all dependent packages will be downloaded.
Use yumdownloader
Yum-utils needs to be installed first.
The code is as follows:
# yum install yum-utils
Download the package
The code is as follows:
# yumdownloader RPM_Name
The downloaded package is located in the current directory. However, only the specified package is downloaded, not all the packages that the package depends on will be downloaded.
Thank you for your reading, the above is the "CentOS system how to download only the RPM package without installation" of the content, after the study of this article, I believe you on the CentOS system how to achieve only download RPM package without installation of this problem has a deeper understanding, the specific use of the situation also needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.