How to uninstall installed software in Fedora

Source: Internet
Author: User
Tags unpack

How to uninstall installed software in Linux.The installation and uninstallation of Linux software has been a problem for many new users. In Windows, we can use the installed uninstall program that comes with the software or "Add/delete a program" in the control panel. Similarly, in Linux, there is a powerful software installation and uninstallation tool named rpm. It can be used to establish, install, query, update, and uninstall software. This tool is used in the command line. Enter rpm at the shell prompt to obtain help information for this command.

  Software Installation

The installation of software in Linux is mainly in two different forms. The first installation file is xxx.tar.gz, and the other is named XXX. i386.rpm. Most of the software released in the first method is sent in the source code form, and the second method is directly sent in binary form.

For the first method, the installation method is as follows:

1. First, copy the installation file to your directory. For example, if you log on as root, copy the software to/root.

# Cp xxx.tar.gz/root

2. Because the file is compressed and packaged, decompress it. Command:

# Tar xvzf filename.tar.gz if it is in the filename.tar.bz2 format, it should be tar jxvf filename.tar.bz2 to decompress

3. After executing this command, extract the installation file to the current directory by path. Run the LS command to view the decompressed file. Generally, the files generated after decompression contain the "Install" file. This file is a plain text file that describes the installation method of the software package in detail.

4. Execute the decompressed command to generate an executable script program named configure. It is used to check whether the system has the library required for compilation, and whether the library version meets the compilation requirements and other system information required for installation. Prepare for subsequent compilation. Command: #./configure

If you want to install the software to a specified directory, use #. /configure -- prefix =/the directory you specify. For example, if you want to install an mlterm in the/opt/mlterm directory, enter

#./Configure -- prefix =/opt/mlterm

5. After the check is passed, the MAKEFILE file for compilation will be generated. Now you can start compiling. The compilation process varies depending on the software scale and computer performance. Command: # Make.

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

# Make install

7. After installation is complete, clear the temporary files generated during compilation and files generated during configuration. Run the following command:

# Make clean

# Make distclean

So far, the software installation is complete.

For the second method, the installation method is much simpler.

Copy the installation file to your directory in the same way as the first method. Then use RPM to install the file. The command is as follows:

# Rpm-I filename. i386.rpm

Rpm automatically unpacks the installation file and installs the software in the default directory. And register the software installation information to the RPM database. The role of parameter I is to enable RPM to enter the installation mode.

  Uninstall Software

1. The software is mainly detached using rpm. To uninstall a software package, you must first know the name registered in the system. Type the following command:

# Rpm-Q-

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

2. Determine the name of the software to be detached, and you can start to uninstall the software. Type the following command:

# Rpm-E [package name]

You can uninstall the software. The function of parameter E is to enable RPM to enter the uninstall mode. Uninstall the software package named [package name. Each software package in the system depends on each other. If the object cannot be detached because of dependency, the RPM prompts and stops uninstalling the object. You can run the following command to ignore the dependency and directly start detaching:

# Rpm-E [package name]-nodeps

Uninstalling dependencies may make other software unavailable in the system.

If you want to know where the RPM package is installed?

Use # rpm-QL [package name]

3. How to uninstall the software installed with the source code package?

It is best to look at readme and install. In general, it is said, but most of the software does not provide the uninstallation method of the source code package; we can find the Software Installation Point to delete. It mainly depends on where you installed it.

For example:

If the software is installed, specify a directory. This problem will not be difficult;

For example, use the source code package to install Gaim

#./Configure -- prefix =/opt/Gaim

# Make

# Make install

If you install mlterm

#./Configure -- prefix =/opt/mlterm

# Make

# Make install

Install the software installed in the source code package in the/OPT directory;

If deleted, the corresponding software directory will be deleted;

Some software needs to execute make Uninstall in the decompressed installation directory so that it can be uninstalled.

Install and uninstall software under

When installing software in Windows, you only need to run the software installation program (setup, install, and so on) or unzip the software by Using ZIP to solve the problem, run the anti-installation program (uninstall, unware, and "Uninstall") to clean up the software and provide a completely graphical operation interface, it's as simple as clicking "Next" with the mouse. Linux seems to be different. Many Beginners complain that it is very difficult to install and uninstall software in Linux. It is not as intuitive as when using Windows. In fact, installing and uninstalling software in Linux is also very simple. There are also installation wizard or unzipping installation methods, except for binary software distribution, there are many software packages distributed in the form of source code. The following describes in detail how to install and uninstall these software.
Load:

I. Installation and uninstallation of binary distribution software packages
The binary distribution of Linux software refers to the release form of a compiled binary software package. Its advantage is that it is easy to install and use, and its disadvantage is that it lacks flexibility, if the software package is compiled for a specific hardware/operating system platform, it cannot be correctly executed on another platform or environment.
1. * binary software package in RPM format
Installation: rpm-IVH *. rpm
Uninstall: rpm-e packgename
Note: rpm (RedHat packge manager) is a software package manager issued by RedHat, it is easy to install, upgrade, uninstall, verify, and query RPM software packages, during unloading, you can also delete files installed in multiple directories. Therefore, we recommend that you use software packages in RPM format as much as possible. In RPM parameters,-I is the installation,-V is the verification, and-H is the use of hashes to display the installation progress ,*. rpm is the file name of the software package (here *. RPM refers *. SRC. files other than rpm with the suffix "rpm"); parameter-E is the software package to be deleted, and packgename is the software package name, which is different from the file name of the software package, it is often a string located before the version number in the file name, such as APACHE-3.1.12-
I386.rpm and apache-devel-3.1.12-i386.rpm are the package file names, respectively, and APACHE-devel. For more RPM parameters, see man rpm.
If you do not like to install or uninstall these software packages on the Character interface, you can use graphical software package management programs such as glint and xrpm in X-window, or the kpackge of KDE. You can easily install, upgrade, uninstall, verify, and query the software package by clicking the mouse.
2. Binary packages in the form of * .tar.gz/*. tgz and *. bz2
Installation: Tar zxvf * .tar.gz or tar yxvf *. bz2
Uninstall: manually delete
Description: Binary packages in the form of * .tar.gz/*. bz2 are packed with tar and compressed with gzip/Bzip2. You can directly unpack the packages during installation. For software that only has a single directory after decompression, run the "RM-RF Software Directory Name" command during uninstallation. If the files are scattered in multiple directories, you must manually delete them one by one (a little effort). To know which files are installed in the system during decompression, run the "Tar ztvf * .tar.gz"/"Tar ytvf *. bz2 "to get the list. The tar Parameter Z is to call gzip for decompression, X is to unpack, V is to verify, F is to show the result, Y is to call Bzip2 for decompression, and T is to list the file list of the package. More Parameters
For more information, see man tar.
If you prefer graphic operations, you can use KDE's Ark compression file management tool in X-window.
3. provide software packages for the installation program
These software packages provide installation scripts or binary Installation Wizard programs (setup, install, install. sh, etc.), you only need to run it to complete the software installation; while the uninstallation also provides a script or program for reverse installation. For example, sun's StarOffice Software Package uses the Setup installer and provides reverse installation after the software is installed. Currently, there are few such software packages, because the installation and uninstallation methods are the same as those for Windows software, you do not need to talk about them more.

Ii. Installation and uninstallation of source code distribution software packages
The source code distribution of Linux software refers to the release form of the source code of all programs of the software. You need to compile and install the executable binary code on your own. The advantage is that the configuration is flexible, some functions/modules can be removed or retained at will to adapt to a variety of hardware/operating system platforms and compiling environments. The disadvantage is that it is difficult and is generally not suitable for beginners.
1. * Source code package in the form of SRC. rpm
Install: rpm-rebuild *. SRC. rpm
CD/usr/src/Dist/RPMS
Rpm-IVH *. rpm
Uninstall: rpm-e packgename
Note: The rpm -- rebuild *. SRC. RPM command compiles the source code and generates a binary RPM package under/usr/src/Dist/RPMs. then install the Binary Package. Packgename is described above.
2. Source Code packages in the form of * .tar.gz/*. tgz and *. bz2
Install: Tar zxvf * .tar.gz or tar yxvf *. bz2 first
Then go to the decompressed directory:
./Configure Configuration
Make Compilation
Make install Installation
Uninstall: Make uninstall or manually delete
Description: It is recommended that you decompress the package and read the instruction file to understand the installation requirements and modify the compilation configuration when necessary. The source code of some software packages can be uninstalled by using the make install command after compilation and installation. If this function is not provided, the software must be manually deleted. Because the software may install files in multiple directories of the system, it is often difficult to delete the files, you should configure them before compilation, specify the path to which the software will be installed :. /configure -- prefix = directory name. In this way, you can run the "RM-RF Software Directory Name" command to thoroughly uninstall the directory. Compared with other installation methods, it is the most difficult to compile and install by yourself. It is suitable for users who already have some experience in Linux. It is generally not recommended for beginners.
.

The installation and uninstallation of Linux software have already been discussed in many cases, but may I still ask whether a tar.gz/bz2 package is a binary file package or a source code package? If you have used a compression tool, you will understand that a package may not be software, it may also be a lot of pictures backed up, or it may be a common package together, the best way to identify what it is to view the file list in the package and use the command tar ztvf * .tar.gz/tar ytvf *. bz2 or use graphical Ark compression file management tools in X-window. Files in the source code package often contain various source code files, header files *. h. c source code *. c, C ++ code source file *. CC /*. CPP and so on; while files in the binary package will have executable files (the same name as the software is often the main execution file), which indicates that the path contains
Bin directory (only a few exceptions ). It's so easy. You can't try it now!

Article 2:

How to install linux software

It is easy to install software in windows. You only need to double-click the setup or install icon and follow the instructions in the Wizard step by step, however, installing software in Linux is not as easy as in windows. Sometimes you find the source code of the software that has not been compiled, which is even more troublesome, here we will introduce how to install the Linux software!
In Linux, software is generally compressed. The main formats include rpm1_tarw.tar.gz and tgz. So the first thing after obtaining the software is decompression.
1. It is easier to install software in RPM format in XWindow. You just need to right-click the file by moving the mouse, in the pop-up menu, there will be three special items (only after right-clicking the RPM file will appear) Show INFO, upgrade, and install, all of which are clear, I won't say much about it. In rpmformat format, you can access tar.gz, tar.gz, and tgz. Double-click files in these formats under XWindow and the files will be automatically decompressed. They are decompressed instead of using the install option like rpm. The Install file will only appear after you decompress the file, if you do not need to install the software, we recommend that you check the README before double-clicking install, because the software you want to install may not be compiled.
Ii. After completing the installation and decompression in XWindow, I will talk about how to decompress and install it in text mode and compile the source code. First, let's talk about rpm. After logging in as root (you can also log in as another identity, but some software cannot be installed) it is not difficult to type rpm-I file + extension (of course, rpm) to be decompressed. Here I want to say "-I" means install, if you want to uninstall or execute other commands, run rpm -- Help. Check the prompt from your computer, in order to take care of those who are not very good at E, I will write a few common parameters here:-E: unmount related,-U (note: in upper case): Upgrade the software package,-pql: lists the RPM software package information.-QF: queries the software package of the specified file. For software in other formats, you can use gunzip, Gzip, tar, and
Unzip and other commands, and then run install. After unpacking, you will get some files, and then go to the decompressed file directory and run the "ls-F-color" command to check the obtained files. There are two situations: the first is that the file is a compiled program (no need to compile it again). The above command to view the file will be displayed in bright green with the "*" mark; the second is the source code that needs to be compiled by yourself. If we get the source code, we need to compile it ourselves to get the executable program. When I hear the compilation of the source code, will it scare you? In fact, I just add a few words when I wear it. It is difficult for beginners to learn if they want to use it well, think about it when you learn to show your hand in front of Mm ......, Read carefully before compiling.
Readme document. The old birds don't need it anymore. Run it after you have read it.
./Configure
Make
Make install (this command can be executed only as root). After compilation, the executable program of the software is obtained in the current directory or SRC subdirectory.
After the introduction, do you think it is easier to install RPM software, by compiling the software source code, you can lay a foundation for later kernel compilation. (Shanghai Leslie Cheung)

Article 3:

Easily install and Uninstall Linux software

The installation and uninstallation of Linux software has been a problem for many new users. In Windows, we can use the installation and uninstallation programs that come with the software or "Add/delete programs" in the control panel. Similarly, in Linux, there is a powerful software installation and uninstallation tool named rpm. It can be used to establish, install, query, update, and uninstall software. This tool is used in the command line. Enter rpm at the shell prompt to obtain help information for this command.

Software Installation
The installation of software in Linux is mainly in two different forms. The first installation file is xxx.tar.gz, and the other is named XXX. i386.rpm. Most of the software released in the first method is sent in the source code form, and the second method is directly sent in binary form.

For the first method, the installation method is as follows:

1. First, copy the installation file to your directory. For example, if you log on as root, copy the software to/root.

# Cp xxx.tar.gz/root

2. Because the file is compressed and packaged, decompress it. Command:

# Tar xvzf filename.tar.gz

3. After executing this command, extract the installation file to the current directory by path. Run the LS command to view the decompressed file. Generally, the files generated after decompression contain the "Install" file. This file is a plain text file that describes the installation method of the software package in detail.

4. Execute the decompressed command to generate an executable script program named configure. It is used to check whether the system has the library required for compilation, and whether the library version meets the compilation requirements and other system information required for installation. Prepare for subsequent compilation. Command: #./configure.

5. After the check is passed, the MAKEFILE file for compilation will be generated. Now you can start compiling. The compilation process varies depending on the software scale and computer performance. Command: # Make.

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

# Make install

7. After installation is complete, clear the temporary files generated during compilation and files generated during configuration. Run the following command:

# Make clean
# Make distclean

So far, the software installation is complete.

For the second method, the installation method is much simpler.

Copy the installation file to your directory in the same way as the first method. Then use RPM to install the file. The command is as follows:

# Rpm-I filename. i386.rpm

Rpm automatically unpacks the installation file and installs the software in the default directory. And register the software installation information to the RPM database. The role of parameter I is to enable RPM to enter the installation mode.

Uninstall Software
1. The software is mainly detached using rpm. To uninstall a software package, you must first know the name registered in the system. Type the following command:

# Rpm-Q-

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

2. Determine the name of the software to be detached, and you can start to uninstall the software. Run the following command to uninstall the software:

# Rpm-E [package name]

The function of parameter E is to enable RPM to enter the uninstall mode. Uninstall the software package named [package name. Each software package in the system depends on each other. If the object cannot be detached because of dependency, the RPM prompts and stops uninstalling the object. You can run the following command to ignore the dependency and directly start detaching:

# Rpm-E [package name]-nodeps

Uninstalling dependencies may make other software unavailable in the system.

Supplement:

If the binary software ends with. Bin, you can install it using the following method (take the so-6_0-beta-bin-linux-zh-Tw1.bin as an example ):

Run the simulated terminal in the folder where the so-6_0-beta-bin-linux-zh-Tw1.bin is located
Input:
/So-6_0-beta-bin-linux-zh-Tw1.bin
Press enter!

Of course, you can also enter:
./So and then use the [Tab] key to complete

(./Indicates the current directory. If the terminal is not opened in the directory where the software is located, enter the corresponding path before the software name .)

If you are on the graphic interface, you can also click (or double-click, depending on the specific mouse settings) to install it!

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.