Linux software installation and management program

Source: Internet
Author: User

Linux software installation and management program

In this article, we will take a look at the software installation and Installation Package Types in Linux, and how to configure and use the local YUM source. [Here we still use the Red Hat Enterprise Linux Server release 6.4 system as an operating instance]

I. Overview

  • Encapsulation Format of Common Software
Software Suffix
Rpm Software Package Suffix:. rpm
Deb Software Package Suffix:. deb
Source code package Tar.gz tar.bz2

2. RPM Package Manager

As proposed by Red Hat, it has been adopted by many Linux distributions to establish a unified database file. It records the installation, uninstallation, and other changes of software packages in detail, and can automatically analyze the dependency between software packages and name them software. version number. number of releases. hardware platform. extension
  • Rpm Command [Operation Command for rpm package in. rpm format]
-Qa: view the list of all RPM software packages installed in the system-qi: View Details of the specified software-ql: query the Directory and file list installed by the specified software package-qc: only the configuration file-qd for installing the specified software package is displayed. Only the document file-qf for installing the specified software package is displayed. qf: The operation to query the file or directory of which RPM software is applicable to the non-installed rpm-qpi: pass. run the rpm package file to view the software details-qpl: View. directory and file list in the rpm installation package-qpc: View. list of configuration files contained in the rpm installation package-qpd: View. the file list in the rpm installation package is for the rpm installation and upgrade operations-I: install a new rpm package-U: upgrade an rpm software. If it is not installed, install-F: update an rpm software. If it is not installed, discard the installation and uninstall package-e uninstall (specify the software name) Auxiliary option -- force: forcibly install the specified rpm software package-nodeps: when installing, upgrading, or uninstalling the software, ignore dependency-h: displays the installation progress with "#"-v: displays detailed information during installation.

Iii. Source Code Installation

  • Advantages
Obtain the latest software version, fix bugs in time, and flexibly customize software functions as needed
  • Integrity Verification
Md5sum verification tool
  • Compiling environment [if you want to install the source code package, you must have the following compiling environment]
Install the C/C ++ compiler gcc-. x86_64 and gcc-c ++. x86_64 make. x86_64.
  • Installation Procedure [step 4 of compiling and installing the source code package]
1. Unpack tar 2. Pre-configure./configure 3. convert to the binary execution file make 4. Install make instll
  • Build a local YUM library. [first, you need to mount the Local CD to a local directory. I will mount the Local CD to/media]
1. enter the directory cd/etc/yum. repos. d 2. delete the original library file rm * 3. manually create the yum file. The file name is optional, but the suffix must be. repo] vim localhost. repo [server] # Set the yum library name [you can name it at will] name = server # Set the remarks of the Library name [You can enter it at will] baseurl = file: // media # Set the yum source, it can be a CD Mount directory. The url supports three protocols: http: // ftp: // file. Baseurl can be followed by multiple URLs. You can change it to an image site with a high speed, but baseurl can only have one enable = 1 # When a software repository is configured as enabled = 0, yum does not provide the repository as the source of the software package when installing or upgrading the software package. You can use this option to enable or disable a software repository. Gpgcheck = 0 # there are two options: 1 and 0, which respectively indicate whether or not to perform gpg verification. If this option is not selected, it is checked by default.
  • Corresponding rpm command:
Yum clean all: # Clear all yum metadata and other information, and obtain the latest repository information again: yum list: # Show all installed and installable packages yum grouplist: # view the list of possible batch installation yum install: # install yum remove all & #124; erase package1: # Delete package1yum deplist package1: # view package1 Dependencies

For more information about the yum source configuration, we configure the local yum source. Next we will update it using the yum source on the network, by default, Red Hat is not allowed to update yum over the network. Then we will configure how to allow RedHat 6 to update the network through yum !!!

For more YUM tutorials, see the following:

RedHat 6.2 modify yum source in Linux use CentOS source for free

Configure the epel yum Source

Redhat local yum source configuration

Description of yum configuration file

Install yum in RedHat 6.1)

YUM installation and cleaning

Build yum local source on CentOS 6.4

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.