In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how Linux installs dependencies in batches, which has a certain reference value, and interested friends can refer to it. I hope you will gain a lot after reading this article.
Linux batch installation dependency 1, dependency detection failed, xxx is required by xxxx.
Dependency detection failed when I installed rpm.
When we are connected to the Internet, or have made a package mirror server, we can install it directly by yum install systemd-lib, but when the server is not connected to the external network, we can only use a method.
Download systemd-libs-219-67.el7.i686.rpm, upload it to the server directory, and run the following command to
Rpm-ivh systemd-libs-219-67.el7.i686.rpm
Sometimes, however, the package relies on other running packages. We can go to https://centos.pkgs.org/7/centos-x86_64/systemd-libs-219-67.el7.x86_64.rpm.html to see the information of systemd-libs and other resources we depend on.
But it is very troublesome to download one by one. Here is a way to download dependent packages in bulk.
2. Batch download dependent packages
Find a linux server that can be connected to the Internet, and you'd better have an environment.
Method 1: downloadonlyyum automatically downloads the RPM package and all dependent packages to the / root/rpm directory: yum install yum-plugin-downloadonly yum install-- downloadonly-- downloaddir=/root/rpm for example: yum install-- downloadonly-- downloaddir=/root/myrpm/ systemd-libs
But if the linux is already installed, this method won't work, at least I didn't succeed.
Method 2: yumdownloaderyum-y install yum-utils in yum-utils-- install yum-utilsyumdownloader-- resolve-- destdir=/root/myrm/ systemd-libs-- download the software package systemd-libs using yumdownloader, and download it to myrm in root. 3. Package and decompress the folder.
Change to the root directory and run the following command
Tar-zcvf / home/myrpm.tar.gz myrm-package the myrm folder into the myrpm.tar.gz file under home
Copy the gai file to the server and decompress it. I put it in the server's home folder. The command goes to the home folder and runs
Tar-zxvf myrpm.tar.gz
4. Bulk installation depends on centralizing rpm installation packages under one folder, and rpm may be one or more. Do not install rpm one by one, use the command installed at the same time, and the system will install the package rpm-ivh-- replacefiles * .rpm correctly. Thank you for reading this article carefully. I hope the article "how to bulk install dependency for Linux" shared by the editor will be helpful to you. At the same time, I also hope that you will support and pay attention to the industry information channel, and more related knowledge is waiting for you to learn!
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.