Install and uninstall the RPM Package in LINUX

Source: Internet
Author: User
Tags rpmbuild
Installing and detaching an RPM Package in LINUX how to view the installation path rpm-qplxxxxxx.rpm1 for the rpm installation package. how to install the rpm package execute the following command rpm-iyour-package.rpm where the your-package.rpm is the file name of the rpm package you want to install, typically placed in the current object...
How to view the installation path RPM-qpl xxxxxx of the rpm installation package after installing and uninstalling the rpm Package in LINUX. rpm 1. how to install the rpm package execute the following command rpm-I your-package.rpm where the your-package.rpm is the file name of the rpm package you want to install, typically placed under the current directory. The following warning or prompt may appear during installation :... conflict... it may be that some files in the package to be installed may overwrite the existing files. in this case, you cannot correctly install them by executing rpm -- force-I... is needed... or... is not installed... you can use rpm -- nodeps-I to ignore the required software. that is to say, rpm-I -- force -- nodeps can ignore all dependencies and file problems, all packages can be installed, but such mandatory software packages cannot be fully functional. 2. how to install the. src. rpm software package. some software packages end with. src. rpm. These software packages contain the source code rpm Package and need to be compiled during installation. There are two installation methods for such software packages. Method 1: run rpm-I your-package.src.rpm cd/usr/src/redhat/SPECS rpmbuild-bp your-package.specs a specs file with the same name as your package cd/usr/src/redhat/BUILD/your-package /a directory with the same name as your package. /configure is the same as compiling common source code software. you can add the parameter make install www.2cto.com to Method 2: execute rpm-I you-package.src.rpm cd/usr/src/redhat/SPECS the first two steps and method one the same rpmbuild-bb your-package.specs a specs file with the same name as your package at this time, in/usr/src/redhat/RPM/i386/(according to the specific package Different, it may be i686, noarch, etc.) in this directory, there is a new rpm Package, which is a compiled binary file. Run the rpm-I new-package.rpm to complete the installation. 3. how to uninstall the rpm package using the command rpm-e package name. The package name can contain the version number and other information, but cannot have a suffix. rpm-e proftpd-1.2.8- 1 rpm-e proftpd-1.2. 8 rpm-e proftpd-rpm-e proftpd may not be in the following format: rpm-e proftpd-1.2.8-1.i386.rpm rpm-e proftpd-1.2.8-1. I 386 rpm-e proftpd-1. 2 rpm-e proftpd-1 sometimes has some errors or warnings :... is needed... this indicates that this software is required by other software and cannot be detached at will. you can use rpm-e -- nodeps to forcibly uninstall it. 4. how to get the files in the rpm package without installing rpm2cpio and cpio rpm2cpio xx X. rpm | cpio-vi rpm2cpio xxx. rpm | cpio-idmv rpm2cpio xxx. rpm | cpio -- extract -- make-directories parameter I is the same as extract, which indicates extracting files. V indicates that the execution process d is the same as make-directory, and the directory m is created based on the original path of the file in the package, which indicates that the file update time is maintained. Www.2cto.com 5. how to View rpm Package-related files and other information all of the following examples are assumed to use the software package mysql-3.23.54a-11 1. the rpm-qa packages installed in my system list all installed packages. if you want to find all installed packages that contain a string of SQL, rpm-qa | grep SQL 2. how to obtain the full name of a software package file rpm-q mysql can obtain the full name of the mysql software package installed in the system, and obtain the version of the current software package. In this example we can get information mysql-3.23.54a-11 3. where is the file installed in an rpm package? Rpm-ql package name note here is the name of the package that does not include the. rpm suffix that means you can only use mysql or mysql-3.23.54a-11 instead of mysql-3.23.54a-11.rpm. If you only want to know where the executable program is put, you can also use which, such as which mysql 4. an rpm package contains files that have not been installed. use rpm-qlp ****. rpm is a software package that has been installed. you can also use rpm-ql ****. rpm 5. how can I obtain the version, purpose, and other information about a software package? For a software package that has not been installed, use rpm-qip ****. rpm is a software package that has been installed. you can also use rpm-qi ****. rpm www.2cto.com 6. which software package is installed for a program, or which package contains this program rpm-qf'which program name' returns the package's full name rpm-qif 'which program name' returns information about the package rpm-qlf 'which program name' note, it is not a quotation mark, but a key in the upper left corner of the keyboard. You can also use rpm-qilf to output the package information and file list at the same time. which software package is installed for a file, or which software package contains this file. Note that the method in the previous question only applies to executable programs. the following method, it can be used not only for executable programs, but also for common files. The premise is that you know the file name. First, obtain the complete path of the program. you can use whereis or which, and then use rpm-qf for example: # whereis ftptop: /usr/bin/ftptop/usr/share/man/man1/ftptop.1.gz # rpm-qf/usr/bin/ftptop proftpd-1.2.8-1 # rpm-qf/usr/share/doc/proftpd-1.2.8/ rfc/rfc0959.txt proftpd-1.2.8-1 summary: to obtain information about the software package, use rpm-q and q to query the query. you can use other options, such as I to represent info, to obtain the information about the software package. use l to represent list and obtain the file list; a indicates all, and queries are executed in all packages; f indicates file, and related queries are performed based on files; p indicates package. grep can be used to generate the query conditions required for queries based on software packages, or Generate www.2cto.com 6 from the command line in. knowledge about rpm software package 1. what is rpm, that is, RedHat Package Management, is one of the RedHat inventions 2. why is rpm required in an operating system? install software packages that implement various functions. These software packages generally have their own programs, but they also have intricate dependencies. It also needs to solve the software package version, installation, configuration, and uninstall automation problems. To solve these problems, RedHat puts forward a good way for its own system to manage thousands of software. This is the RPM Management system. After the rpm management system is installed in the system, as long as it is a package that meets the rpm file standards, you can easily install, upgrade, and uninstall 3. is it true that all linux systems use rpm and require a package management system? Therefore, many linux systems use rpm. However, the rpm system is dedicated to RH. However, systems such as TL and Mandrake also use rpm. Since the rpm source program can be compiled on other systems, it is possible to use rpm on other systems. In addition to rpm, some other systems also have their own software package management programs, such as deb packages of debian, and slakware also have their own package management systems. 4. Why is the rpm package file name so long? the rpm package file name contains the version information, operating system information, hardware requirements, and so on. For example, in the mypackage-1.1-2TL.i386.rpm, mypackage is the name of the software package registered in the system 1.1 is the software version number, 2 is the release number, TL represents for the TL operating system, or it may be RH and so on. I386 indicates that it is used on intel x86 platform, or it may be a type. 5. the i386 and i686 in the package file name contain not only the software name and version information, but also the information about the applicable hardware architecture. I386 indicates the software package is applicable to computers with x86 architectures of intel 80386 or above (AI32) i686 indicates the software package is applicable to computers with x86 architectures of intel 80686 or above (Pentium pro or above) (IA32) noarch indicates that this software package is not related to the hardware architecture and can be used in general. The program of the i686 software package is generally optimized for the CPU, so backward compatibility is used for comparison. the i386 package can be used on x86 machines. Forward is generally incompatible. However, currently, the CPU below Pentium pro is rarely used. Generally, the configured machines can use the i686 software package www.2cto.com 6. can rpm packages released by different operating systems be mixed? For rpm packages that have been compiled into binary files, they cannot be mixed due to different operating systems. Software packages released with src. rpm can be installed on different systems because local compilation is required during installation. 7. some special problems encountered when using rpm: rpm-e **. rpm cannot delete the rpm package, because the package name does not include rpm, rpm-e package name, and may contain version numbers and other information, but it cannot have a suffix. is there a tool for rpm to read RPM files in the MS system? Wincmd with rpm plugins... you can install and upgrade the rpm package through ftp. Rpm-ivh ftp://xxxxxxxx/PATH2SomeRPM When rpm is installed, what should I do if the version of the existing package is too high? Sometimes, because the installed software package is too old and the related software package version in the system is relatively new, some files on which the package to be installed may not be found. There are two solutions. The first is to find a file with the same or similar functions as the desired file in the system file and link it with a symbol to the desired directory. The second is to download and install the new version of the software by tianyihuyidao9.

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.