Several methods of installing software in 003-linux

Source: Internet
Author: User
Tags bz2

First, RPM package installation Method Step

1, find the corresponding package, such as soft.version.rpm, download to the local directory;
2, open a terminal, Su-into the root user;
3, the CD soft.version.rpm is located in the directory;
4. Input RPM-IVH soft.version.rpm

With:

1. Installation

Command: RPM–IVH RPM package Name
For more advanced, see the following table:
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.

2. Uninstall

Command: Rpm–e 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–IVH software-1.2.3-1.i386.rpm
When uninstalling, you should do the following:
Rpm–e software.
In addition, graphical RPM tools like gnorpm, KPackage, etc. are also available in Linux, making the process easier.

Second, the Deb package installation method Step

1, find the corresponding package, such as Soft.version.deb, download to the local directory;
2, open a terminal, Su-into the root user;
3, the CD Soft.version.deb is located in the directory;
4. Input Dpkg-i Soft.version.deb

With:
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.
1. Installation
Dpkg–i Deb's package name
such as: Dpkg–i Software-1.2.3-1.deb
2. Uninstall
Dpkg–e Software Name
such as: Dpkg–e software
3. Query: Query the current system installed packages:

Dpkg–l ' * Package name * '

such as: Dpkg–l ' *software* '

Three, tar.gz source code package installation method

1, find the corresponding package, such as soft.tar.gz, download to the local directory;
2, open a terminal, Su-into the root user;
3, the CD soft.tar.gz is located in the directory;
4, TAR-XZVF soft.tar.gz//general will generate a soft directory
5. CD Soft
6,./configure
7. Make
8. Make Install

Detailed Description:

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–XVZF package Name", you can complete the decompression and unpacking work in one step. If not, the first with the decompression software, and then perform "TAR–XVF decompression after the 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.
Run the application. 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.

Four, tar.bz2 source code package installation method

1, find the corresponding package, such as soft.tar.bz2, download to the local directory;
2, open a terminal, Su-into the root user;
3, the CD soft.tar.bz2 is located in the directory;
4, TAR-XJVF soft.tar.bz2//general will generate a soft directory
5. CD Soft
6,./configure
7. Make
8. Make Install

Five, APT installation: (Install Deb package)

1, open a terminal, Su-into the root user;
2, Apt-cache search Soft Note: Soft is the name of the software you are looking for or related information
3. If the software soft.version is found in 2, install the software with the Apt-get install soft.version command

Note: As long as you can surf the Internet, only need to use Apt-cache search to find software, with Apt-get install software
Detailed Description:

Apt-get is a package management tool for the Debian,ubuntu release, very similar to the Yum tool in Red Hat.

Apt-get commands generally require root permission to execute, so follow the sudo command example sudo apt-get xxxx

Apt-get Install packagename--installs a new package (see aptitude below) apt-get remove packagename--Uninstall an installed package (keep config file) apt-get--purge Remove packagename--Uninstall an installed package (delete profile) dpkg--force-all--purge packagename--Some software is difficult to uninstall, but also prevent the application of other software, you can use this, but a bit risky. Apt-get autoremove--because apt will back up the installed or unloaded software on the hard drive, if you need space, you can allow this command to delete the software you have deleted. Apt-get autoclean--Run this command periodically to clear the. deb file for the packages that have been uninstalled. In this way, you can free up a lot of disk space. If the demand is urgent, you can use apt-get clean to free up more space. This command will remove the. deb file that has the software package installed. Apt-get clean--This command will also remove the backup of the installed software, but this will not affect the use of the software. Apt-get upgrade--Update all installed packages Apt-get dist-upgrade--Upgrade the system to the new version Apt-cache search string--searching for strings in the package list Apt-cache showpkg pkgs--Displays package information. Apt-cache stats--See how many software apt-cache dumpavail--print the list of available packages in the library. Apt-cache Show pkgs--shows the package record, similar to Dpkg–print-avail. Apt-cache pkgnames--The name of all packages in the Print packages list (This command needs to be run periodically to ensure that your package list is up to date)
Simply put: dpkg can only install the Deb package that has been downloaded to the local machine. Apt-get can download and install the Deb package online, update the system, and automatically handle the dependencies between package and package, which is not available in the Dpkg tool.
Six, yum mode installation: (Install RPM package)

RPM is a software package name for Linux that ends in. RMP and is installed with the following syntax: RPM-IVH.
RPM Package installation has a big drawback is that the file is too large, sometimes installed a software to install a lot of other packages, very troublesome.
So Redhat Little Red Hat developed the Yum installation method, he can completely solve the problem of relevance, very convenient, as long as the configuration of two files can be installed, installation method is: Yum-y install.
Yum is not a package, but the software that installs the package

Simply put: RPM can only install RPM packages that have already been downloaded to the local machine. Yum can download and install RPM packages online, update the system, and automatically handle dependencies between package and package, which is not available in the RPM tool.
Seven, bin file installation:

If the name of the software you downloaded to is Soft.bin, which is generally an executable file, the installation method is as follows:
1, open a terminal, Su-into the root user;
2, chmod +x Soft.bin
3./soft.bin//Run this command to install the software

Eight, do not need to install the software:

Some software, such as LUMAQQ, does not need to be installed and can be run directly after the JRE is extracted. Suppose the download is lumaqq.tar.gz, using the following method:
1, open a terminal, Su-into the root user;
2, TAR-XZVF lumaqq.tar.gz//This step will generate a directory called Lumaqq
3. CD Lumaqq
4, chmod +x lumaqq//Set LUMAQQ This program file to be run
5, at this time can run Lumaqq, with the command./lumaqq, but each time you run to enter the full path or switch to the LUMAQQ directory you just generated
6, in order to ensure that not set the path can be used, you can set up a lumaqq link in the/bin directory, with the command ln-s lumaqq/bin/can, at any time after opening a terminal input Lumaqq you can start QQ chat software
7, if you want to Lumaqq have a menu item, using the menu editing tools, such as Alacarte menu editor, find the Lumaqq directory generated above the LUMAQQ set a menu item, of course, you can also go directly to/usr/share/ Applications directory, create your own desktop file in the format of other *.desktop files.

Several methods of installing software in 003-linux

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.