Summary of Linux decompression and software installation methods

Source: Internet
Author: User

Linux compressed package (cpio/GZ/zip/bin/tar

Cpio: cpio-idmv <file_name.cpio
. GZ: gunzip-D file_name.gz
. Zip: unzip file_name
. Z: uncompress
. Bz2 bunzip2
. Bin chmod + x *. Bin
./*. Bin
Tar CVF name.tar *
Exp Database Backup

 

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

Uninstall Software
# Rpm-E Software name

It must be noted that the aboveCodeThe software name is used instead of the software package name. For example, to uninstall the software-1.2.-1. i386.rpm package, run:
# Rpm-E Software

. Forcibly uninstall the RPM package
Sometimes one RPM cannot be removed, especially when there is something else on the system.ProgramDepends on it. If the command is executed, the following error message is displayed:

# Rpm-e xsnow
Error: removing these packages wowould break dependencies:
/Usr/x11r6/bin/xsnow is needed by x-amusements-1.0-1

In this case, you can use the -- force option to reinstall xsnow:

# Rpm-IVH -- force xsnow-1.41-1.i386.rpm
Xsnow

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

Trigger tar.gzSource codePackage installation method:

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.

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 a terminal and Su-become the root user;

2. Tar-xzvf lumaqq.tar.gz // a directory named lumaqq is generated in this step.

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.

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.