Install software in Liunx


  • In Win, install the software. Exe double-click to run
  • In Linux, there are various types of packages
  • Common package packaging types:
    • The RPM extension is.rpm
    • Deb The extension of the software package is.deb
    • The source code package is a compressed package in.tar.gz or.tar.bz2 format, including README of the program source code
    • The software package that provides the installation program (Agent)
      • install.sh
      • setup
      • .bin

The RPM package

  • Proposed by redhat corporation
  • A unified database file is established to record the change information of software package installation and uninstallation in detail, and the software package dependency can be automatically analyzed
  • Recommended website: rpmfind.net/
  • Package format
    • Bash – 4.2-9.1. I586. RPM

Bash. | | – 4.2-9.1 | i586 |. The RPM

  • | – | – | – | –

Software name | version number released | | hardware platform (noarch does not distinguish between hardware platform) | extensions

YUM source software management mode

  1. YUM repository manages RPM packages in a centralized manner
  2. A good solution to the dependencies between software packages
  • YUM Configuration file

    [root@localhost ~]# CD /etc/yum.repos. D / # # packageKit-media.repo # Sample file for the yum configuration file [root@localhost yum.repos. D]#Copy the code
    • Note: The yum configuration file must end with.repo
  • Yum configuration file contents

    [InstallMedia] # yum name= rhel-7.0 server.x86_64 # yum name= file:///mnt/cdrom Software source signature 0: no verification 1 Verification Enabled =1 # Indicates whether the system starts automatically. 0 indicates that the system does not start automatically. 1 indicates that the system starts automaticallyCopy the code

Steps to use YUM source management software

  1. Configure the YUM configuration file
  2. Clear the YUM source cache
  3. Software installation

Actual operations performed on VMS

  1. Load the CD-ROM drive and right click to connect

  1. Create the YUM source path

    • mkdir /mnt/cdrom
  2. Mount the CD to the yum directory

     mount /dev/sr0 /mnt/cdrom/
    Copy the code
  3. Modifying a Configuration File

    • Path: / etc/yum. Repos. D/a

    • File: vim DVD.repo

    • The file content

      [DVD] # Linux_ruochen # yum baseurl = file:///mnt/cdrom # yum gpgcheck = 0 # enabled = 1 # Boot automaticallyCopy the code
  4. View the status of all YUM sources

     yum repolist all
    Copy the code
  5. List all YUM packages

     yum list all
    Copy the code
  6. Clearing the YUM Cache

     yum clean all
    Copy the code
  7. Installing the Yum Software Package

    Yum install install (eg: VSFTPD) [-y]Copy the code
  • The mount command uses mount
    • Mount Source file Mount file
    • mount /dev/cdrom/ /mnt/cdrom
  • Umount uninstall
    • Umount source file/mount file
  • Check the mount
    • df -hT

Common yum command


  • Yum remove packagename #
  • Yum info packagename # yum info packagename
  • Yum search packagename #
  • Yum update packagename

Yum Install package group


  • Yum Grouplist # list all available groups
  • # yum groupinfo # yum groupInfo
  • Yum groupinstall # yum groupinstall
  • Yum grouperase # delete package group
  • Yum groupupdate # update package group

Install the local RPM package using yum

  • yum localinstall **.rpm

The source code to install

  • I give you the source code of the program, you just do it, look at README
  1. Check the compile environment in which the source code is compiled
  2. compile
  3. The installation
  • Example:
    1. Install the VMware tools

      • Copy the compressed VMwareTools package to the opt directory.
      • Unpack the
      • Viewing INSTALL Information
      • perform./vmware-install.pl
      • All the way back to restart (generally restart takes effect)
    2. Ntfs-3g (Linux recognizes USB disk)

      • Importing compressed files
      • View the README file
      • ./configure (check the compiler environment)
      • Install required software
      • Make to compile
      • Make install to install
      • The two steps above are also written together
        • make && make install
    3. Install the HTTP service using source code (download the source code package)

RPM Software Package Installation

  • Check the installed RPM package information

    • RPM [option] [software name]
    • RPM -qa # Check all installed RPM packages in the system
    • RPM -qa ‘libXtst’ #
    • RPM -qf [file/directory] # check which RPM software a file or directory belongs to
  • Install or upgrade the RMP software package

    • RPM [Option] Software package file
    • RPM -ivh Software package file
      • – I: installation
      • -v: displays details about the installation process
      • -h: displays the installation progress as #
      • -u: upgrade an RPM software. If the RPM software is not installed, install it
      • -f: updates an RPM software. If the RPM software is not installed, the installation is abandoned
  • Uninstall the specified RPM package

    • RPM -e Specifies the software name
  • example

    • Apache_OpenOffice
      • Download the RPM package
      • Unpack the
      • Install all RPM packages
        • rpm -ivh openoffice-*
      • Install the Redhat RPM package in the Desktop directory
    • Linuxqq
      • The RPM – the ivh linuxqq – v1.0.2 – walk.. I386 RPM

      • A whole bunch of dependencies emerge

      • Yum install dependency packages

      • If you continue installation, the version is inconsistent

      • mandatory

        The RPM - the ivh linuxqq - v1.0.2 - walk.. I386 RPM -- forceCopy the code
      • Installation complete, login to look at the face…