Click here to load reader
Upload
simon-mcintosh
View
12
Download
2
Embed Size (px)
DESCRIPTION
第 14 章. 套件管理. 前言. 以前在 Unix/Linux 作業系統要安裝軟體 , 往往都需要用文字模式的 make 指令來編譯程式 , 安裝過程稍嫌複雜 , 而不容易使用。因此 , 許多 Linux 發行版都自行開發 , 或沿用由其他發行版廠商開發的套件管理軟體 , 來幫助使用者可以輕鬆的安裝、移除及更新軟體。. 前言. - PowerPoint PPT Presentation
Citation preview
Unix/Linux , make , , , Linux , ,
, RPM(Red Hat Package Manager) , RPM Yum (Yellow dog Updater, Modified) , tarball
14-1 RPM 14-2 Yum 14-3 14-4 Linux
14-1 RPM RPM Red Hat Package Manager, Red Hat Red Hat , RPM , RPM Unix
RPM 14-1-1 rpm 14-1-2 14-1-3 14-1-4 14-1-5 14-1-6 14-1-7 rpm 14-1-8
14-1-1 rpm , RPM RPM, RPM rpm rpm , rpm RPM
rpm
14-1-1 rpm RPM RPM rpm
RPM RPM , RPM tar.gz , , , ,, RPM , rpm , ,
RPM RPM , , RPM , RPM , ,
RPM RPM , RPM patch , , http://www.rpm.org RPM
RPM RPM ,
RPM , Apache httpd httpd-manual, "-" 3.10a-13 "13" , , ,
RPM RPM , , , i386i586i686 noarch i386 Intel 80386 CPU, Intel 386 486PentiumPentuim II... i586i686 , i586 586 CPU noarch RPM .rpm
RPM Pentium CPU i386 , i586 .src RPM , SRPM , ,
rpm , rpm 5 , rpm --help
rpm , root , 5 (, rhviewer rhpainter , ,) man rpm ,
14-1-2 rpm ,
, (), # rpm FTP HTTP , URL ,
, -h , , --percent , , ,
, rpm
, --replacepkgs , rpm ,
, , rpm
rpm , --replacefiles
RPM RPM , RPM , rpm
, , rhviewer , rhpainter , --nodeps ,
14-1-3 , RPM
, "rhviewer" "rhviewer-3.10a-13", "rhviewer-3.10a-13.i386.rpm"
,
rhpainter , rhviewer --nodeps , ,
14-1-4 rpm 5 , ,
,
, , -U rpm , ,
rpm , rpm .rpmsave , , ,
, , ,
"" , --oldpackage
rpm , rpm , , rpm ,, rpm
, (),
RPM
14-1-5 RPM , -q rpm -q rhviewer rhviewer
-qi
-l , -v , ls -l
14-1-6 , -V , MD5 () checksum
3 RPM 4 .rpm , RPM
, , RPM
14-1-7 rpm , rpm , , rpm -ql package-name ,
rpm , , rpm -Va , , , rpm -qf / /
rpm , ( vi), , rpm -Vf /bin/vi ( ispell) , rpm -qdf /usr/bin/ispell ,
rpm
14-1-8 Linux , , , , PHP ,
PHP , , , rpm , , , , rpm , 2
http://rpmfind.net/ "libcurl.so.2""php-pear" , curlphp-pear 2 , , , ,
, PHP , rpm php-pear , php-pear , PHP
RPM ,
14-2 Yum Yum (Yellow dog Updater, Modified) Duke University, RPM , RPM , , Yum RPM , Yum ,
Yum Fedora Core Yum , Yum Yum http://linux.duke.edu/projects/yum/
Yum Yum Yum Yum Yum Yum
Yum Yum Fedora Core (Repository), yum , , Yum , ,
Yum Fedora Core , , , , ,
Yum Fedora Core , /etc/yum.conf,
Yum
Yum
, base updates-released , Yum
Yum yum
PHP , yum
Yum
Yum
Yum
Yum yum ,
Yum yum
httpd , yum
Yum
Yum
Yum yum , , ,
Yum
Yum , yum info , , yum search DNS , yum search DNS
Yum yum
,
Yum
Yum , kdelibs ,
Yum
Yum ,
Yum , ,
Yum
, /etc/rc.d/init.d/yum stop
14-3 RPM , , .tar.gz tgz , Tarball tar -zxvf , Tarball , Tarball , 2
, C C++ gcc make , README INSTALL , Tarball , gccmakeautoconfig
() , , CPU Apache , , CPU i686 (IBM PC)PowerPC ()... Linux , Red Hat Linux/Fedora Core Slackware Linux ,
lsalarm () , http://ltsword.allegronetwork.com/? page=7, Linux tarball ,
README , 3 (, )./configure, , --prefix makemake install, root
, /tmp/lsalarm bin , lsalarm , /tmp/lsalarm/bin/lsalarm & ,
Tarball , , /usr/local ,
RPM Tarball ? rpm , Tarball , , RPM Tarball , , , RPM ,
RPM Tarball ? RPM , , , Yum, , RPM RPM , , Tarball
RPM Tarball ? Tarball , ,, Tarball , , Tarball , ,
RPM Tarball ?, ( Sendmail, /etc /etc/mail) , ,
14-4 Linux Linux Linux " Linux " , , , ,
Linux , 2 http://sourceforge.nethttp://freshmeat.net 2 , , , ,
Linux , , RPM, http://rpmfind.net/ , RPM ,