Linux7.1 RPM Package

Source: Internet
Author: User
Tags gpg

Three ways to install the package:

RPM Package

Yum Tool: A tool written in Py, also installs the RPM package, is the package that the automatic installation relies on.

Source Package Installation: Code installation

RPM Package Introduction

Set up the optical drive link and mount it. Click the disc connection in the lower right corner of the virtual machine.

  

[[email protected] ~]# df-h file system        capacity  used  available% mount point/dev/sda3        18G  1.1G   17G    7%/devtmpfs        489M     0  489M    0%/devtmpfs           494M     0  494M    0%/dev/shmtmpfs           494M  6.7M  487M    2%/runtmpfs           494M     0  494M    0%/sys/fs/cgroup/dev/sda1       197M   75M  123M   38%/boot[[email protected] ~]# ls/mnt/[[email protected] ~]# mount/dev/cdrom   /mnt/mount:/dev/sr0 write protection, will be read-only mount [[email protected] packages]# cd/mnt[[email protected] mnt]# lscentos_buildtag  GPL       LiveOS    Rpm-gpg-key-centos-7efi              images    Packages  rpm-gpg-key-centos-testing-7eula             isolinux  Repodata  TRANS. Tbl[[email protected] mnt]# CD packages/[[email protected] packages]# ls ... libibumad-1.3.8-3.el7.x86_64. rpmlibibumad-devel-1.3.8-3.el7.x86_64.rpm. #rpm包格式 # Package Name    version number    release version number     platform
RPM Tool Usage Install upgrade Uninstall
#安装         rpm  -IVH    package file        [[email protected] packages]# RPM-IVH zsh-5.0.2-7.el7.x86_64.rpm Preparation                          ... ################################# [100%] Upgrading/installing ...   1:zsh-5.0.2-7.el7                  ################################# [100%] #升级         rpm  -UVH   package File # Uninstall         rpm-  E        package name [[email protected] packages]# RPM-UVH zsh-5.0.2-7.el7.x86_64.rpm in preparation ...                          ################################# [100%]        package zsh-5.0.2-7.el7.x86_64 has been installed [[email protected] packages]# rpm-e zsh
Query function
#查询安装的包 RPM-QA [[email protected] packages]# rpm-qabiosdevname-0.5.0-10.el7.x86_6 4centos-release-7-0.1406.el7.centos.2.3.x86_64openssh-server-6.4p1-8.el7.x86_64 ... ... #查询指定包是否安装 rpm-q package name [[email protected] packages]# rpm-q pppppp-2.4.5-33.el7.x86_64[[em Ail protected] packages]# rpm-q ppp2 not installed package ppp2# query Specifies package information RPM-QI package name [[EMAIL PR Otected] packages]# Rpm-qi vim-enhancedname:vim-enhancedepoch:2version:7.4.160release:2.el7a Rchitecture:x86_64install date:2017 November 07 Tuesday 03:36 14 seconds ... #列出包安装的文件 rpm-ql package name [[EMA Il protected] packages]# rpm-ql vim-enhanced/etc/profile.d/vim.csh/etc/profile.d/vim.sh/usr/bin/rvim/usr/bin /vim/usr/bin/vimdiff/usr/bin/vimtutor# See if a file is installed by which package RPM-QF file absolute path [[[Email protected] Packages]    # rpm-qf/usr/bin/vimvim-enhanced-7.4.160-2.el7.x86_64# See which package is installed by a command        RPM-QF ' which command ' #如果which command for two rows result in error [[email protected] packages]# which lsalias ls= ' ls--c Olor=auto '/usr/bin/ls[[email protected] packages]# rpm-qf ' which ls ' rpm:--color=auto ': unknown option [[EMAIL PR Otected] packages]# rpm-qf ' which CD ' bash-4.2.45-5.el7.x86_64

  

Linux7.1 RPM Package

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.