RPM-QF usage tips and how to find packages

Source: Internet
Author: User
Tags crypt

First look at the installed packages, or the time to install a certain package of commands

RPM (-QA) | grep software Name

[email protected] oldboy]# rpm-qa| grep opensslopenssl-devel-0.9.8e-22.el5openssl-0.9.8e-22.el5openssl-0.9.8e-22.el5openssl-devel-0.9.8e-22.el5[[  Email protected] oldboy]# Yum search opensslloaded plugins:fastestmirror, securityloading mirror speeds from cached Hostfilefile:///mnt/cdrom/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/mnt/cdrom/repoda Ta/repomd.xml ' Trying other mirror.=============================== matched:openssl =============================== M2crypto.x86_64:Support for using OpenSSL in Python scriptsopenssl.i686:The OpenSSL toolkitopenssl.x86_64:The openss L Toolkitopenssl-devel.i386:files for development of applications which would use:opensslopenssl-deve L.x86_64:files for development of applications which would use:opensslopenssl-perl.x86_64:perl SC Ripts provided with OpenSSLopenssl097a.i386:The OpenSSL toolkitopenssl097a.x86_64:The OpenSSL Toolkitperl-crypt-sslea Y.x86_64:crypt::ssleay-openssl glue that provides LWP Https:supportperl-net-ssleay.x86_64:perl Extension for using OpenSSLpyOpenSSL.x86_64:Python wrapper module around the OpenSSL libraryxmlsec1.i386:Library provi Ding support for "XML Signature" and "xml:encryption" standardsxmlsec1.x86_64:Library providing support fo R "XML Signature" and "xml:encryption" Standardsxmlsec1-openssl.i386:openssl Crypto plugin for XML secur ity Libraryxmlsec1-openssl.x86_64:openssl Crypto plugin for XML Security Libraryxmlsec1-openssl-devel.i386:openssl cry PTO plugin FOR XML security Libraryxmlsec1-openssl-devel.x86_64:openssl Crypto plugin for XML security Librar


If in the production environment, the system's important file/etc/inittab has been deleted (the system has not restarted, before the crash), do not worry, the following tells you how to deal with. 1. Accidental deletion of files [[[email protected] ~]# rm-rf/etc/inittab[[email protected] ~]# cat/etc/inittabcat:/etc/inittab: No such file or Directory2, create a new file, and view information about the corresponding package [[email protected] ~]# touch/etc/inittab[[email protected] ~]# RPM-QF/ETC/INITTABINITSCRIPTS-8.45.19.EL-1 3, determine the relevant information of the package, mount the installation CD, to find [[email protected] ~]# Cd/mnt/yum/[[email  protected] yum]# lltotal 0[[email protected] yum]# cd ~[[email protected] ~]# mount/dev/cdrom/mnt/ Yummount:block Device/dev/cdrom is write-protected, mounting read-only[[email protected] ~]# cd/mnt/yum/server/[ [Email protected] server]# cp initscripts-8.45.30-2.el5.i386.rpm/tmpcp:overwrite '/tmp/initscripts-8.45.30-2.el5.i386.rpm '? Y[[email protected] server]# cd/tmp[[email protected] tmp]# lltotal 1680drwx------2 root root 4096 Feb 17 1 3:45 bindrwx------9 root root 4096 Feb 13:45 etcdrwx------3 root root 4096 Feb 17 13:53gconfd-root-r--r--r--1 root root 1651907 Feb 15:41 initscripts-8.45.30-2.el5.i386.rpmdrwx------2 root root 4096 Fe b 13:53 keyring-06yg9fdrwx------2 root root 4096 Sep 08:44 keyring-elqvm1drwx------2 root root 4096 Sep 26 0 8:08 keyring-jtnbtbdrwx------3 root root 4096 Feb 13:45 libsrwxr-xr-x 1 root root 0 Feb 13:54 mapping-root drwx------2 root root 4096 Feb 15:38 orbit-rootdrwx------2 root root 4096 Feb 13:45 sbindrwx------2 root Ro  OT 4096 Feb 13:53 ssh-roxtuk6949drwx------4 root root 4096 Feb 13:45 usrdrwx------4 root root 4096 Feb 17 13:45 vardrwx------2 root root 4096 Feb 13:54 virtual-root.2eeluvdrwxrwxrwt 2 root root 4096 Feb 5 12:19 Vmwar ednddrwx------2 root root 4096 Feb 13:53 vmware-root 4, unpacking information [[email protected] tmp]# Rpm2cpio initscripts-8.4 5.30-2.el5.i386.rpm |cpio-imd10748 blocks[[email protected] tmp]# lltotal 1680drwx------2 root root 4096 Feb 17 13:45 bindrwx------9 roOT root 4096 Feb 13:45 etcdrwx------3 root root 4096 Feb 13:53 gconfd-root-r--r--r--1 root root 1651907 Feb 15:41 initscripts-8.45.30-2.el5.i386.rpmdrwx------2 root root 4096 Feb 13:53 keyring-06yg9fdrwx------2 Root Roo T 4096 Sep 08:44 keyring-elqvm1drwx------2 root root 4096 Sep-08:08 keyring-jtnbtbdrwx------3 root root 4 096 Feb 13:45 libsrwxr-xr-x 1 root root 0 Feb 13:54 mapping-rootdrwx------2 root root 4096 Feb 15:38 or bit-rootdrwx------2 root root 4096 Feb 13:45 sbindrwx------2 root root 4096 Feb 13:53 ssh-roxtuk6949drwx---- --4 root root 4096 Feb 13:45 usrdrwx------4 root root 4096 Feb 13:45 vardrwx------2 root root 4096 Feb 1 7 13:54 VIRTUAL-ROOT.2EELUVDRWXRWXRWT 2 root root 4096 Feb 5 12:19 vmwarednddrwx------2 root root 4096 Feb 17 13:5 3 Vmware-root5, file replacement and simple modification [[email protected] tmp]# cp./etc/inittab/etc/cp:overwrite '/etc/inittab '? Y[[email protected] tmp]# Cat/etC/inittab!!!!!!! 

Yum Search software Name

RPM-QF Software Name


RPM-QF usage tips and how to find packages

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.