In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Today, the editor shares with you the detailed explanation of rpm, yum and source code installation software in linux. I believe many people don't know much about it. In order to make you understand better, I summarized the following contents for you. Let's look down together. I'm sure you'll get something.
Detailed explanation of rpm, yum and source code installation software
8.1rpm installation
Rpm [option] package name main option-I install-e uninstall-U upgrade-Q find secondary option-ⅴ display procedure-h-- hash query-a-all query all installed packages-f-file query owns sr0
Yum source
[root@MiWiFi-R3L-srv etc] # cd / etc/yum.repos.d [root@MiWiFi-R3L-srv yum.repos.d] # lsCentOS-Base.repo CentOS-Debuginfo.repo CentOS-Media.repo CentOS-Vault.repoCentOS-CR.repo CentOS-fasttrack.repo CentOS-Sources.repo [root@MiWiFi-R3L-srv etc] # cd / etc/yum.repos.d [root@MiWiFi-R3L-srv yum.repos.d] # lsCentOS-Base.repo CentOS-Debuginfo.repo CentOS-Media. RepoCentOS- Vault.repoCentOS-CR.repo CentOS-fasttrack.repo CentOS-Sources.repo [root@MiWiFi-R3L-srv yum.repos.d] # ^ C [root@MiWiFi-R3L-srv yum.repos.d] # mkdir xx [root@MiWiFi-R3L-srv yum.repos.d] # mv * .repo xx/ [root@MiWiFi-R3L-srv yum.repos.d] # lsxx
Then create a new 1.repo under this directory
The content is
[ftp] name=testbaseurl= ftp://localhost/pubgpgcheck=0
Now the yum works.
[root@MiWiFi-R3L-srv yum.repos.d] # vim 1.repo [root@MiWiFi-R3L-srv yum.repos.d] # yum install http loaded plug-in: fastestmirror LangpacksLoading mirror speeds from cached hostfileftp | 3.6 kB 00:00 (1amp 2): ftp/group_gz | 165kB 00:00 (2amp 2): ftp/primary_db | 3.2MB 00:00 No software package http is available. Error: no processing required
Baseurl can be ftp://
It can also be file://
The content is
[loacl] name=localbaseurl= file:///mnt/dvdgpgcheck=0
Three / because the third / means to follow the directory.
Install the third party source, epel,aliyun, source of Tsinghua University
Either way, just install the file rpm, and then you will have the source repo file you just downloaded in / etc/yum.repos.d.
8.3yum command
Configuration of the yum installation, in the / etc/yum.conf file
[main] cachedir=/var/cache/yum/$basearch/$releaseverkeepcache=0debuglevel=2logfile=/var/log/yum.logexactarch=1obsoletes=1gpgcheck=1plugins=1installonly_limit=5bugtracker_url= http://bugs.centos.org/set_project.php?project_id=23&ref=http://bugs.centos.org/bug_report_page.php?category=yumdistroverpkg=centos-release
Cachedir default download place $basearch is your architecture / the second is your version
Keepcache is whether to save after downloading.
Next, Zhu ordered
The name of the installupdateremovesearchGrouplistyum list package
8.5 Source installation
1. download
First download the source code, and then decompress it, because there is a graphical interface, direct operation on the line.
two。 Decompression
It is nginx, then decompress it, open it and look at it.
[wangzirui@laotie ~] $cd nginx-1.17.8/ [wangzirui@laotie nginx-1.17.8] $lsauto CHANGES.ru configure html man srcCHANGES conf contrib LICENSE README
3. Check
The configure inside is an executable file.
[wangzirui@laotie nginx-1.17.8] $. / configure checking for OS + Linux 3.10.0-1062.el7.x86_64 x86_64checking for C compiler. Not found./configure: error: C compiler cc is not found
You can't run it if you run it directly, because you need to compile this file.
So you need to install gcc
[root@laotie nginx-1.17.8] # yum-y install gcc
At this time, it will be carried out after it has been installed.
. / configure
Will prompt for the lack of qcre, and then install qcre
[root@laotie nginx-1.17.8] # yum list pcre loaded plug-in: fastestmirror LangpacksLoading mirror speeds from cached hostfile * base: mirrors.aliyun.com * extras: mirrors.aliyun.com * updates: mirrors.163.com installed package pcre.x86_64 8.32-17.el7 @ anaconda installable package pcre.i686 8.32-17.el7 base [root @ laotie nginx-1.17.8] # yum-y install pcre-devel
Just install it, and then make it to generate the installation file.
4. Compile
[root@laotie nginx-1.17.8] # make
Next is make install. After execution, the installation is successful.
5. Installation
[root@laotie nginx-1.17.8] # make install
Then enter the directory and execute the executable file.
6. Execution
[root@laotie nginx-1.17.8] # cd / usr/local/nginx [root@laotie nginx] # lsconf html logs sbin [root@laotie nginx] # cd sbin [root@laotie sbin] # lsnginx
And then execute
. / nginx
Just enter localhost. You can see the html of nginx.
The above is a brief introduction of rpm, yum and source code installation software in linux. Of course, the differences in the detailed use of the above have to be understood by everyone. If you want to know more, welcome to follow the industry information channel!
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.