您好,登錄后才能下訂單哦!
這篇文章主要介紹了Ubuntu中安裝軟件時怎么指定版本號的相關知識,內容詳細易懂,操作簡單快捷,具有一定借鑒價值,相信大家閱讀完這篇Ubuntu中安裝軟件時怎么指定版本號文章都會有所收獲,下面我們一起來看看吧。
首先我們可以查看系統中某個軟件都提供了哪些版本可供安裝,這可以利用 apt-cache madison 命令來實現,廢話不多說直接看 bash 命令行代碼
$ apt-cache madison r-base r-base | 4.0.2-1.1804.0 | https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/ Packages r-base | 4.0.1-1.1804.0 | https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/ Packages r-base | 4.0.0-1.1804.0 | https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/ Packages r-base | 3.6.3-1bionic | https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages r-base | 3.6.2-1bionic | https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages r-base | 3.6.1-3bionic | https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages r-base | 3.6.1-1bionic | https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages r-base | 3.6.0-2bionic | https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages r-base | 3.6.0-1bionic | https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages r-base | 3.5.3-1bionic | https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages r-base | 3.5.2-1bionic | https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages r-base | 3.5.1-2bionic | https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages r-base | 3.5.1-1bionic | https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages r-base | 3.5.0-1bionic | https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages r-base | 3.4.4-1ubuntu1 | http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages r-base | 3.4.4-1ubuntu1 | http://us.archive.ubuntu.com/ubuntu bionic/universe i386 Packages
也可以使用 apt-cache policy 命令,如
$ apt-cache policy r-base r-base: Installed: (none) Candidate: 4.0.2-1.1804.0 Version table: 4.0.2-1.1804.0 500 500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/ Packages 4.0.1-1.1804.0 500 500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/ Packages 4.0.0-1.1804.0 500 500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/ Packages 3.6.3-1bionic 500 500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages 3.6.2-1bionic 500 500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages 3.6.1-3bionic 500 500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages 3.6.1-1bionic 500 500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages 3.6.0-2bionic 500 500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages 3.6.0-1bionic 500 500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages 3.5.3-1bionic 500 500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages 3.5.2-1bionic 500 500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages 3.5.1-2bionic 500 500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages 3.5.1-1bionic 500 500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages 3.5.0-1bionic 500 500 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/ Packages 3.4.4-1ubuntu1 500 500 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages 500 http://us.archive.ubuntu.com/ubuntu bionic/universe i386 Packages
如果查到我們想安裝的具體版本號在列表中那就可以使用 apt-get install package=version 進行安裝,如
apt-get install r-base=3.6.3-1bionic
關于“Ubuntu中安裝軟件時怎么指定版本號”這篇文章的內容就介紹到這里,感謝各位的閱讀!相信大家對“Ubuntu中安裝軟件時怎么指定版本號”知識都有一定的了解,大家如果還想學習更多知識,歡迎關注億速云行業資訊頻道。
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。