一、yum仓库安装包使用
1.配置yum仓库
1.cd /etc/yum.repos.d
2.cp rehel-debuginfo.repo server.repo
3.vim server.repo
2.检验yum仓库包的安装
首先需要挂载镜像文件
[root@server253 ~]# mount /dev/scd0 /mnt/
[root@server253 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 20G 9.9G 8.6G 54% /
/dev/sda1 487M 16M 446M 4% /boot
tmpfs 506M 0 506M 0% /dev/shm
/dev/scd0 2.8G 2.8G 0 100% /media/Enterprise Linux dvd 20090908
/dev/scd0 2.8G 2.8G 0 100% /mnt
3.安装httpd做测试
[root@server253 ~]# yum -y install httpd
Loaded plugins: security
base | 1.1 kB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package httpd.i386 0:2.2.3-31.0.1.el5 set to be updated
base/filelists | 2.3 MB 00:00
--> Finished Dependency Resolution
Dependencies Resolved
=================================================================================================
Package Arch Version Repository Size
Installing:
httpd i386 2.2.3-31.0.1.el5 base 1.2 M
Transaction Summary
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 1.2 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : httpd 1/1
Installed:
httpd.i386 0:2.2.3-31.0.1.el5
Complete!
4.查看包的安装
二、rpm安装包使用
1.介绍rpm安装包的使用方法
rpm 包安装必须包括全名,使用yum仓库安装只需要跟文件名就OK了
下面演示的是rpm包的两种安装方法
1.1 -i
1.2 -ivh
2.rpm包的安装演示
3.如何通过rpm工具来卸载安装包
4.rpm安装包扩展1
4.1rpm安装软件带的一些参数
4.2查看安装包
5.rmp安装包扩展2
演示,如何解决rpm安装包的依赖性关系
通过rpm安装包方式来安装QQ
把QQ链接到桌面上
这里有一项去掉包的依耐性安装
三、源码包安装
1.源码包安装的步骤
源码包以.gz结尾
源码包安装三大步:
./configure 检测安装环境
make 编译源码包(生成链接文件,提供安装源)
make install 安装二进制文件
本文转自 vbers 51CTO博客,原文链接:http://blog.51cto.com/vbers/2051536,如需转载请自行联系原作者