Linux software Installation File

Source: Internet
Author: User

There are three types of Linux software installation files: 1: rpm package, Deb package, Bin package 2: compiled software package like Windows 3: there is also a source code, which is suffixed with .tar.gz?tar.z=tar.bz2 or. tgz. Therefore, Linux software can be divided into two categories: package management software installation, compared with direct installation from the source code, package management is easy to install and uninstall; easy to update installed software packages, easy to protect configuration files, easy to track installed files. The other is to compile the source code and then install it. compile the source code to generate the software that best suits your machine, but it is difficult to install and cannot be mastered by beginners (Haha, I have tried it before ). package management software is relatively simple and easy to manage.

1. Install and uninstall the RPM package
1. rpm is a software format provided by Red Hat Linux for installing and managing software under Linux. It is currently used in many Linux releases.
Rpm stands for Red Hat Package Manager (Red Hat Package Manager ). Rpm is essentially a package that contains Linux software that can be installed and run on a specific machine architecture immediately. The rpm is as follows:
 
Most Linux RPM software packages have certain naming rules, which follow the naming rules-version-revision-type.
Eg: MYsoftware-1.2-1. i386.rpm.
Rpm command parameters:
-I install software.
-T test the installation.
-P shows the installation progress.
-F ignores any errors.
-U upgrade and installation.
-V check whether the kit is correctly installed.

2. Install the RPM package
Rpm-ivh xxx. rpm
XXX is the file name of your installed software.
If it is an upgrade or installation (the earlier version of the software has been installed), it should be like this:
Rpm-uvh XXX. rpm

3. query installed RPM packages
Rpm-Qa | grep xxx
Note: you can only find the installed RPM software. If you compile and install the software on your own, you cannot find it. Of course, it is troublesome to uninstall it. You can also find it on the graphic interface.

4. Uninstall the RPM package
# Rpm-E Software name
Note: The above Code uses the software name instead of the software package name. For example, to uninstall the software-1.2.-1. i386.rpm package, run: # rpm-E Software

4. Forcibly uninstall the RPM package
It is not possible to remove an RPM, especially when other programs on the system depend 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
Note: We recommend that you use the tool software kleandisk to safely and thoroughly clear RPM packages that are no longer in use.

5. Install. SRC. RPM files
At present, there are two RPM modes, one is already encoded (i386.rpm), and the other is unencoded (SRC. rpm ).
Rpm -- rebuild filename. SRC. rpm
At this time, the system will create a file filenamr. rpm, under the/usr/src/redflag/RPMS/subdirectory, it is generally i386, the specific situation is related to the Linux release version. Run the following code: rpm-IVH/usr/src/regflag/RPMS/i386/filename. rpm

Note: Software Installation in Linux is not convenient in windows. Sometimes, when you install software in rpm, it will prompt you that you lack other dependent software. Only the software on which it depends can be installed successfully.
If you are prompted to lack other software during installation, You can go here to find it: rpmfind.com

Ii. Deb package installation and uninstallation
1. Deb is a package manager provided by Debian Linux, which is very similar to rpm. However, since RPM appeared early and widely used, it is common in various versions of Linux, and the Debian Package Manager dpkg only appears in debina Linux. Its advantage is that it does not need to be troubled by strict dependency check. The disadvantage is that this package management tool can be seen only in the Debian Linux release.

2. Installation
# Dpkg-I MYsoftware-1.2.-1.deb

3. Uninstall
# Dpkg-e mysoftware

Iii. Bind File Installation and uninstallation
1. The extension. binfile is binary, and it is also the machine language obtained after the source program is compiled. Some commercial software can be released as an installation package suffixed with. Bin.
For example, streaming media player RealONE. If you have installed RealONE for Windows, it is very easy to install RealONE for Linux (File Name: r1p1_linux22_libc6_i1__a1.bin.

2. binfile Installation
# Chmod + x r1p1_linux22_libc6_i1__a1.bin
./R1p1_linux22_libc6_i1__a1.bin

Next, select the installation method, which includes general installation and advanced installation. If you do not want to change the installation directory, you can select normal installation. The installation process is almost the same as that in windwos.

3. unmount the BIND File
Take RealONE for Linux as an example. If you use the normal installation method, you can delete the real and realplayer9 folders in your home directory.

2. Install and uninstall compiled software packages like Windows
1. The installation and uninstallation methods are basically no different from those in windows.
2. Linux green software
Linux also has some green software, but not many. The Linux system provides a mechanism to automatically respond to the requirements of software running processes and set the environment for immediate running. This mechanism can be an interface or middleware. Programs compiled by programmers can be directly copied and distributed without installation. You only need to click the program icon to access the interface provided by the operating system and set it to work. To delete the software, you can directly delete it without having to link the file. This is the simplest way to install and uninstall software.

 

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.