Several methods of Linux installation software __linux

Source: Internet
Author: User
Tags bz2 chmod prepare

First, the RPM package installation method steps:
1, find the appropriate software packages, such as soft.version.rpm, download to a directory of this machine;

2, open a terminal, Su-as root user;

3, CD soft.version.rpm in the directory;

4, input RPM-IVH soft.version.rpm


Detailed Introduction:

1. Installation:
I just need a simple word, I can finish. Perform:
RPM–IVH RPM's Package name
More advanced, please see the following table:
RPM Parameter Parameter description
-I installation software
-t test installation, not a true installation
-P Display Installation progress
-F Ignores any errors
-U Upgrade Installation
-V Detection Suite is properly installed
These parameters can be used at the same time. More content can be referenced by the RPM command Help.
2. Uninstall:
I also need a simple word, you can finish. Perform:
Rpm–e Software Name
Note, however, that the software name, not the package name, is used later. For example, to install software-1.2.3-1.i386.rpm This package, you should perform:
RPM–IVH software-1.2.3-1.i386.rpm
When you uninstall, you should perform:
Rpm–e software.
In addition, graphical RPM tools such as gnorpm and KPackage are also available in Linux, making the process simpler.

Second, the Deb package installation method steps:
1, find the appropriate software packages, such as Soft.version.deb, download to a directory of this machine;

2, open a terminal, Su-as root user;

3, CD Soft.version.deb in the directory;

4, input dpkg-i Soft.version.deb

Detailed Introduction:
This is a package manager provided by Debian Linux, which is very similar to RPM.

But because RPM appears earlier, it is common in all versions of Linux.

The Debian Package Manager dpkg only appears in Debina Linux, and other Linux versions are not generally 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 software packages:

Dpkg–l ' * Package name *

such as: Dpkg–l ' *software* '

Three, tar.gz source code package installation method:
1, find the appropriate software packages, such as soft.tar.gz, download to a directory of this machine;

2, open a terminal, Su-as root user;

3, CD soft.tar.gz 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 Introduction:

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 to obtain;
2 Decompression file: General tar package, will do a compression, such as gzip, bz2, etc., so you need to extract first. If the most common GZ format, you can perform: "TAR–XVZF package Name", you can complete the decompression and unpacking work. If not, then use the decompression software, and then perform the "TAR–XVF extracted after the tar package" for unpacking;
3 Read the accompanying install file, readme file;
4 Execute "./configure" command to prepare for compilation;
5 Execute the "make" command to compile the software;
6 perform "Make install" to complete the installation;
7 Execute "make clean" to delete the temporary files generated by the installation.
Well, that's it. We can then 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, the Linux application software executable file will be stored in the/usr/local/bin directory. But this is not "put the universal" truth, the most reliable or look at the software install and Readme files, general will have instructions.
2. Uninstall:
Usually software developers rarely consider how to uninstall their own software, while Tar is just the completion of packaging work, so does not provide a good uninstall method.
Then it is not possible to uninstall it. Not really, there are two software that can solve this problem, that is kinstall and kife, they are the gold partner of the TAR package installation, uninstall.

Four, tar.bz2 source code package installation method:
1, find the appropriate software packages, such as soft.tar.bz2, download to a directory of this machine;

2, open a terminal, Su-as root user;

3, CD soft.tar.bz2 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 Way installs: (Installs Deb package)
1, open a terminal, Su-as 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 found in 2, then use the Apt-get install soft.version command to install the software

Note: As long as you can surf the internet, just use Apt-cache search to find software, with Apt-get install software
Detailed Introduction:

Apt-get is a Debian,ubuntu release package management tool, very similar to the Yum tool in Red Hat. Apt-get commands generally require root permission execution, so generally follow the sudo command example sudo apt-get xxxx

Apt-get Install packagename--Install a new package (see aptitude below) apt-get remove packagename--Uninstall an installed package (Reserved profile) Apt-get--purge
Remove packagename--Uninstall an installed package (remove profile) dpkg--force-all--purge packagename--Some software is difficult to uninstall, but also blocked the application of other software, you can use this, but a bit risky.
Apt-get autoremove--because apt will put the installed or unloaded software back to the hard disk, so if you need space, you can let this command to delete the software you have deleted. Apt-get autoclean--periodically runs this command to clear the. deb files of the packages that have been uninstalled. In this way, you can free up a lot of disk space. If the need is urgent, you can use apt-get clean to free up more space.
This command deletes the. deb file that has the installed software package.
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 a new version Apt-cache search string--searches the package list for a string Apt-cache showpkg
pkgs--Displays package information.
Apt-cache stats--See how many software apt-cache dumpavail--print a list of available packages in the library.
Apt-cache Show pkgs--displays package records, similar to Dpkg–print-avail. Apt-cache pkgnames--The names of all the packages in the Print package list (this command needs to be run periodically to ensure that your list of packages is up to date)
Simply put: dpkg can only install Deb packages that have 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 packages and packets, which is not available in Dpkg tools.

Six, yum Installation: (Installation of RPM package)

RPM is a Linux package name that ends with a. RMP, which is installed with the syntax: RPM-IVH.
RPM Package installation has a big drawback is that the file is too relevant, and sometimes install a software installation of many other packages, very troublesome.
So for this redhat small red Hat developed 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 one-pack, but a software for installing packages

 simple: rpm can only install RPM packages that have already been downloaded to the local machine. Yum can download and install the RPM package online, update the system, and automatically handle the dependencies between packages and packets, which is not available in the RPM tool. 


Seven, bin file installation:
If you download to the software name is Soft.bin, generally is an executable file, the installation method is as follows:

1, open a terminal, Su-as 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:
With some software, such as LUMAQQ, is not required to install, with the JRE after the solution can be directly run. Assume

The download is lumaqq.tar.gz, using the following methods:

1, open a terminal, Su-as 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 is run

5, at this time can run Lumaqq, with the command./lumaqq can, but each run to enter a full path or

Switch to the LUMAQQ directory you just generated.

6, in order to ensure that you do not set the path can be used, you can in the/bin directory to create a lumaqq link,

With the command ln-s lumaqq/bin/, any time later, open a terminal input LUMAQQ can

Start the QQ chat software

7, if you want to Lumaqq have a menu item, use menu editing tools, such as Alacarte menu

Editor, find the Lumaqq in the Lumaqq directory above to set up a menu item on it, and of course you

You can also go directly to the/usr/share/applications directory, according to the other *.desktop files inside the grid

Generate a desktop file of your own.

===================================================================================
Installation of software
----Linux Software Installation is mainly in two different forms. The first installation file name is filename.tar.gz. Another installation file name is filename.i386.rpm. Software distributed in the first way is sent in the form of source code. The second method is directly distributed in binary form. i386 means that the software is compiled according to the Inter 386 instruction set.
----for the first type, the installation method is as follows:
----First, copy the installation files to your directory. For example, if you are logged on as root, copy the software to/root.
----#cp Filename.tar.gz/root
----Because the file is compressed and packaged, it should be decompressed. The command is:
----#tar Xvzf filename.tar.gz
----The command is executed, the installation file is decompressed in the current directory by path. Use the LS command to see the uncompressed file. A file known as "INSTALL" in a file that is typically produced after decompression. This file is a plain text file, detailing how the package is installed.
----for most software that needs to be compiled, they are installed in roughly the same way. An executable script named Configure that is produced after the decompression is performed. It is the system information required for installation to check whether the system has the necessary libraries to compile, and whether the version of the library meets the needs of the compilation. Prepare for the subsequent compilation work. The command is:
----#./configure
----If an error is found during the inspection, configure will give a prompt and stop checking. You may be prompted to configure the system. Re-execute the program again. After the check is passed, the makefile file for compilation is generated. At this point, you are ready to start compiling. The process of compiling depends on the size of the software and the performance of the computer, and the time spent is different. The command is:
----#make
After the----compiles successfully, type the following command to start the installation:
----#make Install
----installation is complete, the files generated during the compilation process should be purged from the temporary files and configuration. Type the following command:
#make Clean
#make Distclean
At this point, the software installation is complete.
----for the second, the installation method is much simpler.
----the same as the first way, copy the installation files to your directory. Then use RPM to install the file. The order is as follows:
----#rpm-I filename.i386.rpm
----RPM will automatically unpack the installation files and install the software to the default directory. and register the software installation information into the RPM database. The function of the parameter i is to get the RPM into installation mode.
----In addition, there are some commercial software under the Linux platform. In its installation files, there is a setup installer that is installed the same way as under the Windows platform. such as: Corel WordPerfect.
Uninstall of software
The uninstall of----software is mainly done using RPM. The uninstall software first needs to know the name that the package registers in the system. Type the command:
----#rpm-Q-A
----can query all the packages installed in the current system. The function of the parameter q is to make the RPM Enter Query command mode. Parameter A is a child of the query mode, meaning all. Query to more information, you can use the less screen display.
----Determine the name of the software you want to uninstall, you can start to actually uninstall the software. Type the command:
----#rpm-E [package name]
----can uninstall the software. The function of the parameter e is to get the RPM into uninstall mode. Uninstall the package named [Package name]. There is a dependency between each package in the system. If you cannot uninstall because of dependencies, RPM prompts and stops uninstalling. You can use the following commands to ignore dependencies and start uninstalling directly:
----#rpm-E [package name]-nodeps
----Ignoring the uninstall of dependencies can cause other software in the system to be unusable. You can use
----#rpm-E [package name]-test
  ----make RPM perform an uninstall preview instead of actually uninstalling it. This allows you to check whether the software has dependencies. There is an error during the uninstall process.

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.