Linux 常用指令集合

1. 檢查當前ubuntu版本

cat /etc/issue

 或者 sudo lsb_release -a 

    升級ubuntu版本

sudo do-release-upgrade -d

2. sudo apt install   安裝package

sudo apt install <package>

    和sudo apt build-dep 的區別

“The short version.
apt-get install
installs a new package, automatically resolving and downloading dependent packages. If package is installed then try to upgrade to latest version.

apt-get build-dep
Causes apt-get to install/remove packages in an attempt to satisfy the build dependencies for a source package.

The command sudo apt-get build-dep packagename means to install all dependencies for 'packagename' so that I can build it". So build-dep is an apt-get command just like install, remove, update, etc.

The build-dep command searches the local repositories in the system and install the build dependencies for package. If the package does not exists in the local repository it will return an error code.”


3. 


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章