Packages of different formats linux installation

A, the deb package
1, if the system is a double-click ubuntu package, according to the guide

2, you can also use the command: sudo dpkg -i .deb package name

3, the uninstall command: sudo apt-get remove package name

Two, rpm package
1, if the graphical interface, by double-clicking

2, you can also use the command: rpm -i .rpm package name

3, the uninstall command: rpm -e full name of the software (such as: firefox -1.0.1-1.3.2)

ps: If you do not know the full name using the command: rpm -qa part of the package name * fuzzy query

Three, bin package
1, open a terminal, go to the directory where the package, give the package together with executable permissions: chmod + x package name .bin. Then execute: ./ package name .bin.

2. Uninstall: the installation directory of the installation can be deleted

Four, run the package
1, with bin bags, to add executable permissions: chmod + x package name .run. Then execute: / package name .run.

2. Uninstall: to the installation directory, there are uninstall file, you can execute the file:. / Uninstall.

Five, tar.gz (bz or bz2 etc.) packages
1, open the terminal, into the source code directory archive

2, depending on the type unzip the file: tar -zxvf package name .tar.gz

3, after performing decompression command file is usually generated after decompression, there is "Install" file. This file is a plain text file, a detailed account of the package installation method.

4, execution of an executable program named configure script generated after decompression. It is a system used to check whether the information system is needed to build libraries, and the need for the repository meets compiled, etc. required for installation. In preparation for the subsequent compilation. Command:. # / Configure.

5, after the check, the compiler generates the Makefile. At this point, you can begin to compile a. Different size and computer performance, as the process of compiling software, the time spent is different. Command: #make.

6, after successfully compiled, type the following command to start the installation: #make install

        Installed, you should remove temporary files and configuration files generated during compilation produced. Type the following command:         

        #make clean
        #make distclean

ps: If your package is a binary package, after decompression can be used directly, 3,4,5,6 step can be omitted.
----------------
Disclaimer: This article is CSDN blogger original article "occupation cannon fodder", and follow CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source and this link statement.
Original link: https: //blog.csdn.net/king_cannon_fodder/article/details/79210928

Guess you like

Origin www.cnblogs.com/wangchaonan/p/11608849.html