In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to view the information of software packages installed under linux". In daily operation, I believe many people have doubts about how to view the information of software packages already installed under linux. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful for you to answer the doubts of "how to view the information of software packages installed under linux". Next, please follow the editor to study!
Detailed explanation of RPM usage
In the Linux operating system, there is a system software package whose function is similar to "add / remove programs" in Windows, but much more powerful than "add / remove programs". It is called Red Hat Package Manager (RPM for short). This toolkit was first launched by Red Hat and later borrowed by other Linux developers. Because it saves a lot of time for Linux users, it is widely used to install and delete software under Linux. Next, I will introduce to you how to use it.
1. We get a new software. Before installing it, we usually have to check what is in the package. Suppose the file is: Linux-1.4-6.i368.rpm, we can check it with this command:
Rpm-qpi Linux-1.4-6.i368.rpm
The system will list the details of the package, including how many files, each file name, file size, creation time, compilation date, and so on.
two。 All the files listed above may not be installed during installation. Just as the installation methods of programs under Windows are typical, complete, and custom, Linux also allows you to choose the installation method. At this time, we can use the following command to check which parts of the package will be installed in the system to facilitate our choice:
Rpm-qpl Linux-1.4-6.i368.rpm
3. After selecting the installation method, start the installation. We can install this software with the rpm-ivh Linux-1.4-6.i368.rpm command. During the installation process, if the system prompts that the software has been installed or cannot continue for other reasons, but if we do want to execute the installation command, we can add a parameter "- replacepkgs" after-ivh:
Rpm-ivh-replacepkgs Linux-1.4-6.i368.rpm
4. Sometimes when we uninstall some installed software, we simply execute the rpm-e; command.
5. Upgrading the lower version of the software is a good way to improve its functionality, which saves us the trouble of uninstalling and then installing the new software. To upgrade a software, simply execute the following command: rpm-uvh; Note: the file name at this time must be the upgrade patch of the software to be upgraded
6. Another way to install software is the uniqueness of Linux and a manifestation of the power of RMP: install the software directly online through the FTP site. When you find a site that contains the software you need and connect to it, execute the following command to install online, such as Linux-1.4-6.i368.rpm, with the command:
Rpm-I ftp://ftp.pht.com/pub/linux/redhat/...-1.4-6.i368.rpm
7. In the process of using the computer, there will inevitably be misoperation, if we mistakenly delete several files and affect the performance of the system, how to find which files are missing? RPM software package provides a function to find damaged files, execute this command: rpm-Va, Linux will list all the damaged files for you. You can fix it from the installation CD of Linux.
There are many files in the 8.Linux system. In the process of using them, we will inevitably encounter files that we do not know. Under Windows, we can use the "start / find" menu to quickly determine which folder a file belongs to. In Linux, the following command line can help us quickly determine which software package a file belongs to:
Rpm-qf
9. When each software package is installed on the Linux system, the installation files are "checked in" to the RPM database, so when we want to query the properties of an installed software, we only need to look in this database. Note: the query command at this time is different from the query introduced in 1 and 8, and this method applies only to installed software packages! Command format:
Rpm-Parameter
At this point, the study on "how to view the information of software packages installed under linux" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.