Cloud computing tutorial learning course syllabus courseware: Using RPM RPM package management tools

Cloud computing tutorial learning course syllabus courseware: Using RPM RPM package management tools:

====================================================================================

To consider:

  1. OS version, eg Centos6 / 7 # cat / etc / redhat-release

  2. System architecture, eg i386 / x86_64 # uname -m

  3. Dependencies, eg ntfs-3g-devel need to rely on ntfs-3g

  4. Version of the rpm package, eg 2015/2017

== Installation

rpm -ivh local_path

rpm -ivh url_path

[Root @ tianyun ~] # rpm -ivh ntfs-3g-2017.3.23-1.el7.x86_64.rpm package names

[Root @ tianyun ~] # rpm -Uvh ntfs-3g-2017.3.23-1.el7.x86_64.rpm package names

[root@tianyun ~]# rpm -ivh http://dl.fedoraproject.org/pub/epel/7/x86_64/n/ntfs-3g-devel-2017.3.23-1.el7.x86_64.rpm

Extra options:

--nosignature // not verify the signature of the package

--force // force the installation package yum reinstall

--nodeps // ignore dependencies

Software Uninstall

#rpm -e Software Name

-and erase

--force when installed with (cover mounting force)

--nodeps when uninstalling with (unloaded when not check dependencies)

RPM package RPM installation information stored in a local database. . .

== inquiry

(Rpm from a local database)

[Root @ tianyun ~] # rpm -q ntfs-3g // query specifies whether the package is installed

[root@tianyun ~]# rpm -qa |grep ntfs

[Root @ tianyun ~] # rpm -ql ntfs-3g // query file ntfs-3g installation

[Root @ tianyun ~] # rpm -qf / usr / bin / ntfs-3g // query the files belong to which rpm package

[Root @ tianyun ~] # rpm -qi ntfs-3g // query package information

[Root @ tianyun ~] # rpm -qc ntfs-3g // query a package installation configuration file

[Root @ tianyun ~] # rpm -qd vsftpd // check the help documentation installed

== Uninstall

[root@tianyun ~]# rpm -e ntfs-3g

[Root @ tianyun ~] # rpm -e ntfs-3g --nodeps !!!!!!!!!!!!!! not directly detect dependencies unloading

Case 3: Install the following packages

vsftpd

samba

nfs-utils

httpd

dhcp

postfix

mysql-server

php

lftp

dos2unix

unix2dos

tigervnc

[root@tianyun Packages]# pwd

/media/cd/Packages

[root@tianyun Packages]# rpm -ivh samba-3.0.33-3.37.el5.i386.rpm samba-common-3.0.33-3.37.el5.i386.rpm

rpm package management tools Summary:

  1. Difficult to resolve package dependencies

  2. If a file is not difficult to know which rpm package consists of, for example semanage or tree command is provided by which package?

Remote Copy

[root@test tmp]# scp /tmp/aa.txt 172.16.110.1:/tmp/

[root@robin ~]# scp /root/install.log 172.16.110.30:/tmp/

[root@robin ~]# scp 172.16.110.30:/tmp/aa.txt 172.16.110.40:/tmp/

Guess you like

Origin blog.51cto.com/14529670/2439730