Install and uninstall command rpm in Linux (centos). How to Use make install

Source: Internet
Author: User

A: RPM package,

This type of software package is similar to the windows EXE Installation File. Various files have been compiled and packaged, And the folder to which the files should be put is specified, which is very convenient to install, in the graphic interface, you only need to double-click to automatically install.
= How to uninstall:
1. Open a SHELL Terminal
2. Because all software names in LINUX contain version numbers, you are advised 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, shows the complete name of the software, such as firefox-1.0.1-1.3.2
Run the uninstall command: rpm-e firefox-1.0.1-1.3.2
=== Installation directory, execute command Look: rpm-ql firefox-1.0.1-1.3.2


B: source code package at the end of tar.gz (bz or bz2,

This software package contains all source programs that have not been compiled and 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. Extract files 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:./configure (some compressed packages have been compiled, which can be omitted in this step)
6. Then run the command: make
7. Run the "make install" command to install the file.
8. installation is complete.


=== 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


==== 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, 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.

 


C: The installation package ending with bin,

This package is similar to an 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 the executable attributes to the file: chmod + x *******. bin (the middle is the letter x, in lower case)
3. 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 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.
B. if it 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. You 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. 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 run 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 your installed file and double-click it to start.

Author: "Xiao Fei's blog"
 

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.