1. 程式人生 > >在linux中使用apt-get install檔案在哪裡

在linux中使用apt-get install檔案在哪裡

舉例:

在shell中輸入:sudo apt install rpm

接著執行:dpkg -L rpm

顯示:

/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/rpm
/usr/share/doc/rpm/buildroot
/usr/share/doc/rpm/hregions
/usr/share/doc/rpm/macros.gz
/usr/share/doc/rpm/README.Debian

/usr/share/doc/rpm/dependencies.gz

……

這就是安裝目錄

apt-get 所下載的用於安裝的軟體包,在 
/var/cache/apt/archives
中。如果執行過 apt-get clean ,那麼原始下載的包就找不到了。