There are three types of applications under Linux (Red Flag Linux Default supported types for tar packages and RPM packages):
Tar bag
Made from the packaging tools of the UNIX system, such as example-1.2.3-1.tar.gz.
RPM Package
Red Hat offers a package package format, such as example-1.2.3-1.i386.rpm.
Dpkg Bag
Debain Linux provides a package encapsulation format, such as Example-1.2.3-1.i386.deb.
Usually in tar package is the source program, with RPM, dpkg packaged is an executable program. A general software will provide a variety of packaging format installer, users can choose according to the situation. It is more flexible to build your own installation source program, but the novice user may experience some difficulty while the executable package will be easier to complete the installation.
This chapter briefly describes how to use shell commands to install and manage applications and software tools in your system, and then details how to install and manage the RPM packages in a desktop environment using graphical package management tools.
8.9.1 Use RPM command
RPM is a very powerful package management system that makes it easy to install, upgrade, and remove software packages under Linux, and has the ability to query and verify software packages. Using a command line can be more flexible than a graphical tool.
The following examples represent the names of the object packages in example-1.2.3-1.i386.rpm.
8.9.1.1 installation, upgrades, and updates
Apply the following three parameters to install the package for the system:
Rpm-i Install a new package
Rpm-u upgrades an existing package in a system and installs it if it does not exist
RPM-F update a software package and do not install if the system does not exist
Parameters that are often used in conjunction with these parameters include:
-V view various information during installation
-H Display progress bar during installation
A commonly used command form is as follows:
RPM–UVH example-1.2.3-1.i386.rpm
This command upgrades or installs the package and displays the installation information and progress bar.
8.9.1.2 Delete
The command to delete a package is: rpm-e example
The name of the software is used instead of the full name of the package.
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.