]]>鍔犵彮http://www.tkk7.com/DustinTang/archive/2006/07/09/57308.htmlDustin TangDustin TangSat, 08 Jul 2006 17:20:00 GMThttp://www.tkk7.com/DustinTang/archive/2006/07/09/57308.htmlhttp://www.tkk7.com/DustinTang/comments/57308.htmlhttp://www.tkk7.com/DustinTang/archive/2006/07/09/57308.html#Feedback0http://www.tkk7.com/DustinTang/comments/commentRss/57308.htmlhttp://www.tkk7.com/DustinTang/services/trackbacks/57308.html浼戞伅涔嬩綑琛ヤ笂涓綃?RPM Command甯哥敤鐨凮ption瑙i噴: 1. Understanding RPM filenames 聽聽聽RPM涓鑸寘鎷互涓嬪嚑閮ㄥ垎: Package鍚嶇О/Version Number/Release Number/Architecture 2. 鏌ヨ宸茬粡瀹夎榪囩殑Package 聽聽聽$rpm -q kernel 鏌ヨ鍗曚釜鍖呬俊鎭?br />聽聽聽$rpm -qa 鏌ヨ鎵鏈夊畨瑁呭寘鐨凩ist; 聽聽聽$rpm -qa | grep MySQL 鏌ヨ涓緇勫寘淇℃伅 聽聽聽聽聽聽聽聽聽聽聽聽-ql 鏌ヨ宸插畨瑁呭寘涓墍鍖呭惈鐨勬墍鏈夋枃浠?br />聽聽聽聽聽聽聽聽聽聽聽聽-qc鏌ヨ宸插畨瑁呭寘涓墍鍖呭惈鐨勯厤緗枃浠?br />聽聽聽聽聽聽聽聽聽聽聽聽-qd 鏌ヨ鎵鍖呭惈鐨刴an鏂囨。 聽聽聽聽聽聽聽聽聽聽聽聽-qf filename 鏌ヨfilename鎵灞炵殑鍖?br />3. 鏌ヨ瀹夎鏂囦歡(*.rpm)鐨勭浉鍏充俊鎭?br />聽聽聽鍩烘湰涓婂拰2涓浉鍚? 澶氬姞涓涓猳ption : p, 浠ュ強(qiáng)rpm鏂囦歡鍚嶄綔鍙傛暟 聽聽聽渚嬪, 鏌ヨ瀹夎鍖呬腑鎵鍖呭惈鐨勬枃浠跺垪琛?br />聽聽聽$rpm -qpl 鏂囦歡鍚?br />4. 瀹夎鍖?br />聽聽聽$rpm -i 鏂囦歡鍚?br />聽聽聽濡傛灉瑕佸拷鐣ラ敊璇?鍐嶅姞涓?-force. 5. 鍗歌澆鍖?br />聽聽聽$rpm -e 鍖呭悕 聽聽聽鍏朵腑鍖呯殑鍚嶇О鍙渶瑕佹彁渚?涓殑package鍚嶇О,褰撶劧緋葷粺涓嶅弽瀵逛綘鐢ㄤ笂鍏朵粬璇稿version number/release number/architecture 6. 鍗囩駭鍖?br />聽聽聽濡傛灉鎯充繚鐣欏師鏈夌殑閰嶇疆鏂囦歡璇風(fēng)敤鍗囩駭Option聽 聽聽聽聽聽聽rpm -U(澶у啓) 鏂囦歡鍚?br />聽聽聽鎴栬呯洿鎺ュ皢鑰佺殑鎶規(guī)帀,閲嶆柊瀹夎 7. 媯(gè)楠屽寘 聽聽聽媯(gè)楠屽寘鐨凮ption鎻愪緵涓縐嶆柟娉曟楠屼竴涓寘鏄惁瀹夎姝g‘, 聽聽聽rpm -V httpd 聽聽聽緋葷粺鍙兘浼?xì)鏄窘C?br />聽聽聽S.5....T c /etc/httpd/conf/httpd.conf 聽聽聽琛ㄦ槑鍦ㄥ畨瑁呰繃鍚巋ttpd.conf閰嶇疆鏂囦歡鏈夋敼鍔?br />聽聽聽榪欎釜鎶ュ憡鐨勬牸寮忎互鍙?qiáng)瀵瑰簲鐨勬剰涔? 聽Character聽Meaning 聽S聽聽Size has changed 聽M聽Permissions and file type are different 聽5聽聽Checksum computed with the MD5 algorithm is different 聽D聽Device type is different 聽L聽 Symbolic link is different 聽U聽File's user is different 聽G聽File's group is different 聽T聽File's modification time is different