Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Basic installation and uninstallation methods of Linux operating system software

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains the "basic installation and uninstallation methods of Linux operating system software". The explanation in the article is simple and clear, and is easy to learn and understand. Please follow the editor's train of thought to study and learn "the basic installation and uninstallation methods of Linux operating system software".

The installation and uninstallation of Linux software has always been a difficult problem for many new users. In Windows, we can use the installation and uninstall programs that come with the software or "add / remove programs" in the control panel. Similarly, there is a powerful software installation and uninstallation tool under Linux, called RPM. It can be used to build, install, query, update, and uninstall software. The tool is used on the command line. Enter rpm at the prompt of Shell to get help for the command.

Installation of software.

There are two different forms of software installation commonly used under Linux. The first installation file is called xxx.tar.gz; and the other installation file is called xxx.i386.rpm. Most of the software distributed in the first way is sent in the form of source code; in the second way, it is sent directly in binary form.

For the first, the installation method is as follows:

1. First, copy the installation files to your directory. For example, if you are logged in as root, copy the software to / root. # cp xxx.tar.gz / root

2. Since the file is compressed and packaged, it should be decompressed. The command is:

# tar xvzf 2004109124523.htm.tar.gz

3. After executing the command, the installation file is extracted in the current directory according to the path. You can see the unzipped file with the ls command. Usually in the unzipped files, there are "Install" files. The file is a plain text file, and the installation method of the software package is described in detail.

4. Execute an executable script named configure that is unzipped. It is used to check whether the system has the library needed for compilation, and whether the version of the library meets the needs of compilation and other system information needed for installation. Prepare for subsequent compilation. The command is: #. / configure

5. After the check passes, the MakeFile file for compilation is generated. At this point, you can start compiling. The compilation process varies depending on the size of the software and the performance of the computer. The command is: # make.

6. After successful compilation, type the following command to start the installation:

# make install

7. After installation, the temporary files generated during the compilation process and the files generated during the configuration process should be cleared. Type the following command:

# make clean

# make distclean

At this point, the installation of the software is over.

For the second, the installation method is much simpler.

As in the first way, copy the installation files to your directory. Then use rpm to install the file. The command is as follows:

# rpm-I 2004109124523.htm.i386.rpm

Rpm will automatically unpack the installation files and install the software to the default directory. And register the installation information of the software into the database of rpm. The function of parameter I is to put rpm into installation mode.

Uninstall the software

1. Rpm is mainly used to uninstall the software. The first thing to uninstall the software is to know the name of the package registered in the system. Type the command:

# rpm-Q-a

You can query all the software packages installed in the current system.

two。 After determining the name of the software to be uninstalled, you can begin to actually uninstall the software. Type the command:

# rpm-e [package name]

You can uninstall the software. The function of the parameter e is to put the rpm into uninstall mode. Uninstall the package named [package name]. Because the software packages in the system depend on each other. If you cannot uninstall because of a dependency, rpm prompts you to stop the uninstall. You can use the following command to ignore dependencies and start uninstalling directly:

# rpm-e [package name]-nodeps

Thank you for reading, the above is the content of "basic installation and uninstallation methods of Linux operating system software". After the study of this article, I believe you have a deeper understanding of the basic installation and uninstallation methods of Linux operating system software, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report