Linux software installation and uninstallation step by step

Source: Internet
Author: User

We need to install various software. We will introduce you to the common methods for installing and uninstalling linux software. During learning, you may consider the uninstalling problem. Here we also talk about the uninstalling solution, share with you.

Linux software installation and uninstallation can be divided into the following situations:

I. RPM package. This kind of software package is just like the windows EXE Installation File. Various files have been compiled and packaged, And the folder to which the files should be put has been specified, which is very convenient for installation, in the graphic interface, you only need to double-click to automatically install.

1. How to uninstall:
1) Open a SHELL Terminal
2) because all software names in LINUX contain version numbers, it is best to determine the full name of the software before uninstalling it. Find the RPM package software: rpm-qa ××× *
Note: ××× refers to the several letters starting with the software name. It is not required to be fully written, but do not make a mistake. * is the wildcard number "*", that is, the asterisk, if you want to find the REALPLAYER software installed on the machine, enter: rpm-qa realplay *
3) Find the software, the display is the complete name of the software, such as the firefox-1.0.1-1.3.2 to execute the uninstall command: rpm-e firefox-1.0.1-1.3.2

2. linux software installation directory, execute command Look: rpm-ql firefox-1.0.1-1.3.2

Source code package at the end of "2 .tar.gz bz" or "bz2". The package is a source program which has not been compiled. It must be compiled before installation. The installation method is as follows:
1) Open a SHELL, that is, the terminal
2) run the CD command to enter the directory where the source code package is located.
3) decompress the file based on the compressed package type (* indicates the compressed package name) tar-zxvf ***** .tar.gz tar-jxvf *****. tar. bz (or bz2)
4) run the CD command to enter the decompressed directory.
5) enter the command to compile the file: Some./configure compressed packages have been compiled. This step can be omitted)
6) then run the command: make
7) run the "make install" command to install the file.
8) linux software installation is complete

1. How to uninstall:
1) Open a SHELL, that is, the terminal
2) run the CD command to enter the compiled software directory, that is, the installation directory.
3) execute the anti-installation command: make uninstall

2. linux software installation directory: Pay attention to the installation directory during the make install command process, or read the readme file in the installation directory. Of course, the best way is to specify the installation directory during the installation process, that is, in. /Add the parameter -- prefix =/** after the configure command /**,

For example:./configure -- prefix =/usr/local/aaaa, that is, install the software in the aaaa directory of/usr/local/path. The default installation directory of common software is/usr/local or/opt. You can find it there.

3. The installation package ending with bin. This package is similar to the RPM package and is easy to install.

1. Open a SHELL, that is, the terminal

2. Run the CD command to enter the directory where the source code package is located.

3. Add executable attributes to the file: chmod + x ******. The bin contains the letter x in lower case)
1) execute the command:./******. bin (this is the installation package for realplayer for linux)
◆ How to uninstall: Delete the installation directory selected during installation.
◆ It can be specified during linux software installation, similar to windows installation.
2) how to execute the software after installation. After installing the software, you can execute the software in multiple ways:
A. After some software is installed, the shortcut keys are automatically added to the Application List. Just like windows, you can find them there.
If B cannot be found in the Application List, you can directly enter the command in the/start/Run Command: the startup command is generally the software name, such as firefox, realplay, xmms, etc.
C can also open a shell terminal and enter the software name, which is the same as running the command. If you do not know the entire command process, you can enter a letter that begins with the command and press the tab key to search. The system will automatically display all the commands that start with the input letter/
D. You can run the Startup File directly in the installation directory of linux software. The executable icon in linux is similar to the shell terminal icon.
E) Find the installed software startup file in the/usr/bin directory and execute the command. In linux, All executable file commands are enabled in the/usr/bin directory. You can go to the directory to find the startup command for the file you have installed and double-click Start.

  1. How to Implement SCSI hard disk hot swapping and online identification in Linux
  2. Easy understanding of CUPS software for Linux Printing
  3. Install a linux virtual machine under win32
  4. The Quota command for linux disk Quota is described in detail.
  5. Linux System Management-command for changing passwords in batches chpasswd

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.