Linux Software Installation, RPM Operation command, local yum configuration (what's the use)

Source: Internet
Author: User
Tags gpg

What is 1.yum?

The full name of Yum is Yellow dog updater,modified, a shell front-end package Manager that can download RPM packages from a specified server and install them automatically, based on RPM package management, automatically handles dependencies, and installs all dependent packages at once. No need to download and install it frequently.

What is the role of 2.yum?

Yum avoids the installation of the source code, thus simplifying the installation process.

"RPM-Format installation package: is a software installation package under the Redhat series that cannot be identified in the Ubuntu system and is an executable program;

Deb Format installation package: Is the Ubuntu system-specific installation package format;

tar.gz Format installation package: is an installation package format that all Linux systems can recognize, it is the source form, after gzip compression formed, so is a more complex installation of a format;

RPM Installation Method: Rpm-ivh *.rpm

Deb installation method: Dpkg-i *.deb

Tar.gz installation Method: ① First decompression: TAR-XZVF *tar.gz/etc/. ②CD into the extracted file, execute./configure;③ compile: Make, ④ install make install; "

3. How do I download a package from Yum?

Perform yum install-y https: Indicates that the HTTPS package is downloaded from Yum and installed;-y indicates that yes/no Select Yes during execution, reducing human-computer interaction; Here the acquisition of the installation package is obtained from the network and downloaded, and the actual situation is more local area network, The HTTPS installation package cannot be downloaded from the extranet, which is useful when configuring local Yum!

4. How to configure local Yum?

The Yum source principle: A server that holds multiple RPM packages, can be retrieved by HTTP, downloaded and installed with the appropriate RPM package.

Yum Source Authoring Process:

1> prepare a Linux server and confirm the server's IP;

2> Upload a centos-... iso image file to the server (the image file contains the required RPM package);

3> mount the image file to a directory;

Mkdir/var/iso

Mount-o Loop Centos...iso/var/iso

4> Modify the Yum source profile on this computer to point to the Yum source, and before you modify the Yum source profile, you need to back up the existing Yum configuration file to prevent future

cd/etc/yum.repos.d/

Rename. Repo. repo.bak*

Modify Yum config file vi centos-local.repo

[Base]

Name=centos-local

Baseurl=file:///var/iso

Gpgcheck=1

enabled=1# is important, 1 is only enabled

Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-6

Save and exit when the modification is complete;

5> clear Yum cache yum Clean all

6> lists all the available Yum source Yum Repolsit

7> Installing the appropriate software Yum install-y httpd

8> Open HTTPd Services: Service httpd start, using a browser to access https://ip:80;

9> the Yum source to the httpd, the other servers can access the Yum source in the intranet via the network: Cp-r/var/iso/var/www/html/centos;

10> cancellation before the hanging in: Umount/var/iso;

11> enter https://IP:80/centos/in the browser to access resources on the server;

12> let the other servers that need to install the RPM package point to this yum source:

cd/etc/yum.repos.d/

Rename. Repo. repo.bak*

VI Centos-local.repo

[Base]

Name=centos-local

baseurl=http://192.168.0.100/centos-6.7

Gpgcheck=1

Gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-centos-6

13> performed on other servers: Yum clean all;

14> Install the program you want to install.

Source: https://www.2cto.com/net/201711/695356.html

Linux Software Installation, RPM Operation command, local yum configuration (what's the use)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.