Common software installation methods under Linux

Source: Internet
Author: User
Tags bz2

One, Linux source code installation 1, unzip the source package file

The source package is typically archived using the TAR tool and then compressed using Gunzip or bzip2, with the suffix format of. tar.gz and. tar.bz2, respectively, decompression method:

#tar -zxvf File.tar.gz#tar -jxvf File.tar.bz2
2. Switch to the extracted directory
#cd File
3, ready to compile work

Before you begin to install the service, you need to execute the Configure script that will automatically perform a series of evaluations of the current system, such as source files, software dependent libraries, compilers, assemblers, connector checks, etc., and, if necessary, use the-prefix parameter to specify the program's installation path. When the script checks that the system environment meets the requirements, a makefile file is generated in the current directory.

#./configure -prefix=/usr/local/program
4. Build the Installer

The makefile file generated in the previous step will save the installation rules for the system environment dependencies, and the make command will then be used to compile all dependent sources using the appropriate shell based on the rules provided by the makefile file, and then the makes command generates a final executable installer.

#make
5. Installation Service Program

If the-prefix parameter is not used in the Configure script phase, the program is typically installed to the/usr/local/bin directory by default.

#make install
Second, RPM package installation Common command combination:
-qa:查询安装包-ivh:安装显示安装进度-Uvh:升级软件包--Update-e:删除包--force 强制操作 如强制删除等--requires 显示该包的依赖关系--nodeps 忽略依赖关系并继续操作
1. Installation
#rpm -ivh 需要安装的软件包名
2. Upgrade
#rpm -Uvh 需要升级的软件包名
3. Uninstall
#rpm -e 需要卸载的软件包名

Note: If other programs rely on packages to be uninstalled, you will be prompted not to remove them, and if you need to forcibly remove them plus--nodeps, you will be forced to delete them, but it may cause software that depends on it to not run.

4. View installed
#rpm –qa 软件包名
5. View the specified package
#rpm -qa | grep "软件或者包的名字"
Third, yum installation 1, installation
#yum install 软件名
2. Upgrade
#yum update 软件名
3. Delete
#yum remove 软件名
4. View
#yum info 软件名
5. Search Software
#yum search 软件
6. View Dependencies
#yum deplist 软件
7. View installed software
#yum list installded
Yum Command parameter list:
-e 静默执行-t 忽略错误-R [分钟] 设置等待时间-y 自动应答yes
Other common options
- upgrade 升级系统- check-update 检查可更新的包- clean all 清除全部- clean packages 清除临时包文件(/var/cache/yum 下文件)- list installed 已安装的包- reinstall[RPM包] 重新安装包

Common software installation methods under Linux

Related Article

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.