How to install software on Linux

WBOY
WBOYforward
2023-05-13 15:07:121173browse

1 rpm -ivh package name.rpm

rpm -ivh your-package Install

rpm -e tree Uninstall

rpm -ql tree query

2 yum installation automatically solves the dependency problem of rpm installation, making the installation simpler

yum install package1 installation

yum remove package1 delete program Package package1

[Advantages: simple, easy to use] [Disadvantages: cannot be customized]

3 Compile (C language source code,)

./ configure (configuration,) make (compile) make install (installation)

[Advantages: Can be customized] [Disadvantages: slow speed, low efficiency, complex operation]

4 apt -get

apt-get install package1 :Install package

apt-get remove package1:Uninstall package

apt-get --purge remove packagename Uninstall package and Its configuration

sudo apt-get autoremove

Enterprise method: customize the rpm package, build a yum warehouse, put the customized rpm package into the yum warehouse, and perform yum installation.

The above is the detailed content of How to install software on Linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete