.deb包是Debain系列的Linux作業系統所使用的一種包封裝格式。
Debian的包管理器dpkg只出現在DebinaLinux中。它的優點是不用被嚴格的依賴性檢查所困擾,但是隻在DebianLinux發行版中才有這個包管理工具。
1.使用dpkg-i安裝deb包
語法:
dpkg-ipackage-file-name
-iistoinstallapackage.
下例為使用dpkg來安裝tcl
$dpkg-itcl8.4_8.4.19-2_amd64.deb
Selectingpreviouslydeselectedpackagetcl8.4.
(Readingdatabase...94692filesanddirectoriescurrentlyinstalled.)
Unpackingtcl8.4(fromtcl8.4_8.4.19-2_amd64.deb)...
Settinguptcl8.4(8.4.19-2)...
Processingtriggersformenu...
Processingtriggersforman-db...
如下所示,你可以使用dpkg-l+名稱來驗證安裝
$dpkg-l|grep"tcl"
iitcl8.48.4.19-2Tcl(theToolCommandLanguage)v8.4-run-t
上面命令顯示tcl包是否安裝正確,其中“ii”表示“installedokinstalled”
dpkg加上-r引數,用於解除安裝已安裝好的軟體包
$dpkg-rtcl8.4
(Readingdatabase...94812filesanddirectoriescurrentlyinstalled.)
Removingtcl8.4...
現在檢查軟體包的狀態.
#dpkg-l|grep"tcl"
rctcl8.48.4.19-2Tcl(theToolCommandLanguage)v8.4-run-t
rc代表‘removedokconfig-files’.解除安裝命令並沒有清除配置檔案.每個已安裝包的狀態可在/var/lib/dpkg/status檢視.tcl8.4包狀態如下所示,
Package:tcl8.4
Status:deinstallokconfig-files
Priority:optional
Section:interpreters
Installed-Size:3308
以下命令表示徹底解除安裝軟體包(包括配置檔案).
$dpkg-Ptcl8.4
(Readingdatabase...94691filesanddirectoriescurrentlyinstalled.)
Purgingconfigurationfilesfortcl8.4...
$
Status:purgeoknot-installed
.deb包是Debain系列的Linux作業系統所使用的一種包封裝格式。
Debian的包管理器dpkg只出現在DebinaLinux中。它的優點是不用被嚴格的依賴性檢查所困擾,但是隻在DebianLinux發行版中才有這個包管理工具。
1.使用dpkg-i安裝deb包
語法:
dpkg-ipackage-file-name
-iistoinstallapackage.
下例為使用dpkg來安裝tcl
$dpkg-itcl8.4_8.4.19-2_amd64.deb
Selectingpreviouslydeselectedpackagetcl8.4.
(Readingdatabase...94692filesanddirectoriescurrentlyinstalled.)
Unpackingtcl8.4(fromtcl8.4_8.4.19-2_amd64.deb)...
Settinguptcl8.4(8.4.19-2)...
Processingtriggersformenu...
Processingtriggersforman-db...
如下所示,你可以使用dpkg-l+名稱來驗證安裝
$dpkg-l|grep"tcl"
iitcl8.48.4.19-2Tcl(theToolCommandLanguage)v8.4-run-t
上面命令顯示tcl包是否安裝正確,其中“ii”表示“installedokinstalled”
dpkg加上-r引數,用於解除安裝已安裝好的軟體包
$dpkg-rtcl8.4
(Readingdatabase...94812filesanddirectoriescurrentlyinstalled.)
Removingtcl8.4...
Processingtriggersforman-db...
Processingtriggersformenu...
現在檢查軟體包的狀態.
#dpkg-l|grep"tcl"
rctcl8.48.4.19-2Tcl(theToolCommandLanguage)v8.4-run-t
rc代表‘removedokconfig-files’.解除安裝命令並沒有清除配置檔案.每個已安裝包的狀態可在/var/lib/dpkg/status檢視.tcl8.4包狀態如下所示,
Package:tcl8.4
Status:deinstallokconfig-files
Priority:optional
Section:interpreters
Installed-Size:3308
以下命令表示徹底解除安裝軟體包(包括配置檔案).
$dpkg-Ptcl8.4
(Readingdatabase...94691filesanddirectoriescurrentlyinstalled.)
Removingtcl8.4...
Purgingconfigurationfilesfortcl8.4...
Processingtriggersformenu...
$dpkg-l|grep"tcl"
$
Package:tcl8.4
Status:purgeoknot-installed
Priority:optional
Section:interpreters