Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install and uninstall software on Linux platform

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "how to install uninstall software on the Linux platform", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to install uninstall software on the Linux platform" this article.

I. four ways to install and uninstall software on the Linux platform

1. Install and uninstall the source package

Advantages: best performance, stable

Disadvantages: installation is slightly complex and error-prone

General software source code packages are compressed, the compression format is divided into gz and bz (or bz2) two formats.

The format of the source code package: * *. Tar.gz (or bz,bz2).

As shown in the figure below, it is the source package of PHP:

The method to install and uninstall the source code package (take the installation package of PHP as an example) is as follows:

1) install:

Step 1: extract the installation package

Gz suffix: tar-zxvf php-5.5.14.tar.gz

Bz (or bz2) suffix: tar-jxvf php-5.5.14.tar.bz2

Step 2: enter the directory and configure

Cd php-5.5.14

. / configure (Note: the configure command has many parameters, so I won't go into details here.)

Step 3: compile

Make

Step 4: install

Make install

(tip: you can execute make and make install together, using make & & make install)

2) Uninstall

Enter the installation directory and use the command make uninstall to uninstall.

2. Install and uninstall the RPM package

RPM is the abbreviation of RedHat Package Manager (RedHat software package management tool). Although the file format name is marked with the logo of RedHat, its original design concept is open, including OpenLinux, S.u.S.E. And Linux distributions such as Turbo Linux have been adopted, which can be regarded as a recognized industry standard.

Advantages: simple and convenient

Cons: package dependency is required

As shown in the following figure, it is the RPM package for MySQL:

1) install:

Go directly to the directory and run the file

. / MySQL-server-5.7.3_m13-1.el6.i686.rpm

2) find the package:

Rpm-qa MySQL-server*

3) find the installation path:

Rpm-ql MySQL-server-5.7.3

4) Uninstall:

Rpm-e MySQL-server-5.7.3

3. Install and uninstall the DEB package

Advantages: simple and convenient

Cons: package dependency is required

DEB is a file extension in the Debian package format. Like Debian, DEB is also named after Debra Murdock, the wife of Debian founder Ian Murdock.

DEB and RPM form the two camps of package management tools under the Linux operating system.

1) install:

Dpkg-I

2) Uninstall:

Dpkg-r

4. Install and uninstall BIN package 1) install:

Give the bin file execution permission to run directly.

2) Uninstall:

Go to the installation directory and delete all files.

Second, more friendly package management software

1 、 YUM

Advantages: simplicity, convenience and solution of package dependency

Yum (Yellow dog Updater, Modified) is a Shell front-end package manager in Fedora and RedHat, as well as in SUSE and CentOS. Based on RPM package management, RPM packages can be downloaded and installed automatically from designated servers, dependencies can be automatically dealt with, and all dependent software packages can be installed at one time without tedious downloading and installation.

Note: I will not elaborate on the specific use commands here.

2 、 APT

Advantages: simplicity, convenience and solution of package dependency

APT (full name: Advanced Packaging Tool) is an installation package management tool under Linux.

Note: I will not elaborate on the specific use commands here.

The above is all the contents of the article "how to install and uninstall software on the Linux platform". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report