Linux Software Installation and uninstallation

Source: Internet
Author: User
Tags unpack

First, understand the Linux application software installation package:
There are typically three installation packages for Linux applications:
1) Tar packages, such as software-1.2.3-1.tar.gz. It is packaged using a UNIX-system packaging tool, tar.
2) RPM packages, such as software-1.2.3-1.i386.rpm. It is a package encapsulation format provided by Redhat Linux.
3) dpkg package, such as Software-1.2.3-1.deb. It is a package encapsulation format provided by Debain Linux.
Moreover, most Linux application packages are named with a certain regularity, which follows:
Name-version-Fixed version-type
For example:
1) software-1.2.3-1.tar.gz means:
Software name: Software
Version number: 1.2.3
Fixed version: 1
Type: tar.gz, description is a tar package.
2) sfotware-1.2.3-1.i386.rpm
Software name: Software
Version number: 1.2.3
Fixed version: 1
Available platforms: I386 for the Intel 80x86 platform.
Type: RPM, description is a RPM package.
Note: Because the RPM format is usually a compiled program, you need to specify the platform. It will be explained in more detail later.
And Software-1.2.3-1.deb won't have to talk about it! Let's practice for ourselves.
Second, understand the contents of the package:
A Linux application package can contain two different types of content:
1) One is an executable file, that is, after you unpack the package, you can run it directly. All packages in Windows are of this type. After installing this program, you can use it, but you can't see the source program. Also, please note that the software is the platform you use, otherwise it will not install properly.
2) The other is the source program, and after you unpack the package, you also need to use the compiler to compile it into an executable file. This is almost impossible in Windows systems, because the idea of Windows is not open source programs.
In general, it is the source program that is packaged with tar, while the RPM and dpkg are often executable programs. In general, self-compiled source programs can be more flexible, but also easy to encounter a variety of problems and difficulties. Instead, downloading those executable packages makes it easier to install the software, and of course, that's a lot less flexible. So generally a software will always provide a variety of packaging format of the installation program. You can choose according to your own situation.
III. application software packaged with tar
1. Installation:
The entire installation process can be divided into the following steps:
1) Obtain the application software: by downloading, purchase the CD-ROM method obtains;
2) Unzip the file: General tar package, will do one more compression, such as gzip, bz2, etc., so you need to extract first. If it is the most common GZ format, you can do the following: "Tar Cxvzf package name", you can complete the decompression and unpacking work in one step. If not, then use the decompression software, and then perform the "Tar cxvf unpacked tar package" to unpack;
3) Read the attached install file, Readme file;
4) Execute the "./configure" command to prepare for the compilation;
5) Execute the "make" command to compile the software;
6) perform "Make install" to complete the installation;
7) perform "Make clean" to remove temporary files from installation.
Well, that's it. So we can run the application. But then, some readers will ask, how do I do it? This is also a problem with Linux features. In fact, in general, Linux application software executable files will be stored in the/usr/local/bin directory! However, this is not a "all-in-one" truth, the most reliable or look at the software install and readme files, generally will be explained.
2. Uninstall:
Usually software developers rarely consider how to uninstall their own software, and tar is only to complete the packaging work, so does not provide a good way to uninstall.
So it is not possible to uninstall it! In fact, no, there are two software to solve this problem, that is kinstall and kife, they are the TAR package installed, uninstall the Gold partner. There is the use of command Whereis, find out all the Software installation directory, all deleted.
IV. application software packaged with rpm
RPM is a major contributor to the Redhat company, making Linux software installation easier.
1. Installation:
I just need a simple word, I can say it. Perform:
RPM CIVH RPM Package Name
RPM parameter Description
-I installation software
-t test installation, not really installed
-P Display Installation progress
-F Ignore any errors
-U Upgrade Installation
-V detection kit is installed correctly
These parameters can be used at the same time. For more information, refer to the RPM command help.
2. Uninstall:
First query: RPM-QL software name, confirmation after execution: RPM Ce software name
Note, however, that the software name is used later, not the package name. For example, to install software-1.2.3-1.i386.rpm This package, you should do the following:
RPM CIVH software-1.2.3-1.i386.rpm
When uninstalling, you should do the following:
RPM Ce software.
In addition, graphical RPM tools like gnorpm, KPackage, etc. are also available in Linux, making the process easier. The specific application of these software, the author will be introduced in separate text.
V. Applications that use DEB packaging
This is a package manager provided by Debian Linux, which is very similar to RPM. However, because RPM appears earlier, it is often seen in various versions of Linux. The Debian Package Manager dpkg only appears in Debina Linux, and no other Linux versions are available. Let's briefly explain here:
1. Installation
Dpkg Ci Deb Package name
such as: dpkg Ci software-1.2.3-1.deb
2. Uninstall
dpkg Ce Software Name
such as: dpkg Ce Software

Linux Software Installation and uninstallation

Related Article

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.