Install software in Linux

Source: Internet
Author: User

Summary of software installation methods in Linux:

1. Steps for installing the RPM package:
1. Find the corresponding software package, such as soft. version. rpm, and download it to a local directory;
2. Open a terminal and Su-become the root user;
3. directory where CD soft. version. rpm is located;
4. Input rpm-IVH soft. version. rpm

Ii. Steps for installing the Deb package:
1. Find the corresponding software package, such as soft. version. Deb, and download it to a local directory;
2. Open a terminal and Su-become the root user;
3. directory where CD soft. version. Deb is located;
4. Input dpkg-I soft. version. Deb

Install the Three-character tar.gz source code package:
1. Find the corresponding software package, such as soft.tar.gz, and download it to a local directory;
2. Open a terminal and Su-become the root user;
3. directory where CD soft.tar.gz is located;
4. Tar-xzvf soft.tar.gz // a soft directory is usually generated.
5. CD soft
6../configure
7. Make
8. make install

Installation Method of source code package:
1. Find the corresponding software package, such as soft.tar.bz2, and download it to a local directory;
2. Open a terminal and Su-become the root user;
3. directory where CD soft.tar.bz2 is located;
4. Tar-xjvf soft.tar.bz2 // a soft directory is usually generated.
5. CD soft
6../configure
7. Make
8. make install

5. APT installation:
1. Open a terminal and Su-become the root user;
2. APT-cache search soft Note: Soft is the name or related information of the software you are looking.
3. If software soft is found in step 2. version, use apt-Get install soft. version command to install software Note: as long as you can access the Internet, you only need to use apt-cache search to find the software, use apt-Get install software

Vi. binfile installation:
If the software you downloaded is soft. Bin, it is generally an executable file. The installation method is as follows:
1. Open a terminal and Su-become the root user;
2. chmod + x soft. Bin
3. Run the./soft. Bin // command to install the software.

************************ ********************
* Filename: Summary of software installation methods in Linux
* Purpose: summarizes various software installation methods in Linux.
* Wrote by: zhoulifa (zhoulifa@163.com) Zhou Lifa (http://zhoulifa.bokee.com)
Linux enthusiasts Linux knowledge disseminators sohowhose developers are best at C Programming
* Date Time: 2006-07-26 18:10:00
* Note: Anyone can copy the code and use these documents, including your commercial use.
* But follow GPL.
* Hope: more and more people are expected to contribute to the development of science and technology.
**************************************** *****************************/

7. Unnecessary software installation:
Some software, such as lumaqq, does not need to be installed. After the built-in JRE is decompressed, it can be directly run. The download result is lumaqq.tar.gz. The usage is as follows:
1. Open Terminal , Su-to root user;
2. Tar-xzvf lumaqq.tar.gz // This step generates Directory
3. CD lumaqq
4. chmod + x lumaqq // set the lumaqq program file to run
5. You can run lumaqq by using the command./lumaqq, but you need to enter the full path or switch to the lumaqq directory generated just now.
6. To ensure that you can use it without setting the path, you can create a lumaqq link in the/bin directory and run the Ln-s lumaqq/bin/command, open a terminal and enter lumaqq at any time to start the QQ chat software.
7. If you want lumaqq to have a menu item, use the menu editing tool, such as alacarte menu Editor, to set a menu item in the lumaqq directory generated above, of course, you can also directly go to the/usr/share/applications directory and follow the other *. generate a desktop file in the format of the desktop file.

Developers are advised not to use the first-generation Linux operating systems such as Red Hat/Red Flag/Suse. In addition to convenience (that is to say, it is silly) and interface luxury points, there is nothing better. Use the apt command for Debian/Ubuntu and other second generation. Install Software is the simplest. The APT command will automatically solve the problem. Software If there is a dependency problem during the installation process, no package will be installed, and a package with a lower version will be automatically upgraded. Of course, you must confirm it once.
If you use a 1st-generation Linux system such as red hat, installing the software is troublesome. rpm-IVH softa. rpm is used to install softa software, but the common problem is that you need to install softb1, softb2, softb3, and other software. Then you can install softb1. Software Package You may be prompted to install a bunch of software, such as softc1, softc2, softc3, and softc4 ...... In this way, you only have enough time to search for these software packages. If you do not have a CD, you have to download it online. You have to search for software packages for half a day. Even if you find these software packages, you may encounter the problem that the softc2 software package must be installed before the softc1 software package. If the sequence is wrong, the installation fails. But who knows? Difficult. So you don't have time to install and experience the software, let alone develop the software.
We recommend that you install the 2nd-generation Linux operating system, typically Debian Linux and Ubuntu Linux, I mentioned a simple installation manual in the article "how to install linux on a computer with a Windows operating system". You can install Ubuntu by downloading it.
The 2nd-generation operating system is quite simple in installing software: the first step is to search for the software you want. For example, if you want to find a game software, its name is myward, description of this game software: my own war game. To search for this software package, you only need Input Command apt-cache search myward, or enter a part of the software name apt-cache search war, or you do not know the software name, enter a part of the text apt-cache search game in the software description, you can find the software. After finding the software, perform the second step. You only need to enter apt-Get install myward, that is, you can install the software by following the software name.
I do program development. I don't want to search for something on Google, but I want to spend more time studying the Linux kernel.

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.