Package management

Package management
1, using the rpm command to install, uninstall, update ntp-0.7.12x86_64.rpm package? [root @ Magedu ~] # rpm -ivh ntp-0.7.12x86_64.rpm.rpm [root @ Magedu ~] # rpm -e ntp-0.7.12x86_64.rpm [root @ Magedu ~] # rpm -U ntp-0.7. 12x86_64.rpm

2, there is a CD-ROM package httpd-2.2.15.xx.rpm, how to mount and install? [Root @ Magedu ~] # mount -t iso9660 / dev / cdrom / mnt [root @ Magedu ~] # cd / mnt / Packages [root @ Magedu ~] # rpm -ivh httpd-2.2.15.xx.rpm

3, which command to see the dependencies installed openssl.x86.rpm package, several queries which files are installed, respectively, to which directory, without actually install? How to check the time openssl installed? How to check /usr/lib/libssl.so.6 belong to which package installed? [Root @ Magedu ~] # rpm -qpR openssl.x86.rpm [root @ Magedu ~] # rpm -qi openssl [root @ Magedu ~] # rpm -qf /usr/lib/libssl.so.6

4, software installation package on linux system, which has several forms? How each form of installation? What are the advantages of these types of installation in the form of their own? 1) tar packages, such as software-1.2.3-1.tar.gz. He is using a UNIX system packaging tools tar packaged. tar -xvzf package names can be one step decompression and unpacking work 2) rpm package, such as software-1.2.3-1.i386.rpm. He is the Redhat Linux to provide a packet encapsulation format. Package management tools YUM rpm -ivh package names .rpm installation: 3) dpkg package, such as software-1.2.3-1.deb. He is Debain Linux to provide a packet encapsulation format. Package management tool apt-get dpkg -i .deb packages were installed: 4) bin bag, such as jdk-1_5_0_05-linux-i586.bin, not some open-source Linux software, released only binary executable program, such programs generally will be labeled bin. 1), to open a SHELL, i.e., terminal 2), the CD command into the source code of the directory where the compressed 3), to the executable file with attributes:. Chmod + x ****** bin (middle letter x , lowercase) 4), execute the command:. ./****** bin

5, how to query whether installed on a linux system rpm package, how to force the removal of the rpm package? rpm -qa | grep "or the name of the software package" rpm -e "software or package name."

6, which dynamic library file viewer sshd program relies? [Root @ Magedu ~] # ldd / usr / sbin / sshd

7, commonly used commands to install Linux or compile software What? [Root @ Magedu ~] # wget http://nodejs.org/dist/v6.11.3/node-v6.11.3-linux-x64.tar.xz ## Download Source [root @ Magedu ~] # tar -xvf node -v6.11.3-linux-x64.tar.xz # decompression [root @ Magedu ~] # ./configure -prefix = / usr / local / node / 6.11.3 # configure [root @ Magedu ~] # make # compile [ root @ Magedu ~] # make install # installed [root @ Magedu ~] # vim / etc / profile # set environment variables

8, how to install a rpm package __b__. a.rpm -evh packagename.rpm b.rpm -ivh packagename.rpm c.rpm -q packagename.rpm d.rpm -qa packagename.rpm

Published 52 original articles · won praise 1 · views 1706

Guess you like

Origin blog.csdn.net/wx25051/article/details/102468752