Ubuntu uses apt
as a package manager. A package manager is software that helps you to manage other software installed on the system. Instead of downloading binaries from a website, you typically use the package manager to install software from repositories. This is the safest and easiest way to install software on Ubuntu, so since JAGS is available in the Ubuntu repositories, you should install it with APT.
In order for apt
to work, it needs to know which versions, and what software is available. apt
only knows which packages are available by creating a database local to your machine. You need to update this periodically, and typically before installing new software.
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)
sudo apt-get install jags
Run Code Online (Sandbox Code Playgroud)
sudo apt-get remove jags
Run Code Online (Sandbox Code Playgroud)
sudo apt-cache search jags
Run Code Online (Sandbox Code Playgroud)
一旦你使用更新了的软件列表中可用的存储库apt-get update
,你可以告诉apt
来升级你的包。这意味着您要apt
安装系统上安装的最新可用软件版本
sudo apt-get upgrade
Run Code Online (Sandbox Code Playgroud)
因此,通常为了安装某些东西,人们可能会执行以下操作:
sudo apt-get update && sudo apt-get install jags
Run Code Online (Sandbox Code Playgroud)
要更新您的系统和安装的软件:
sudo apt-get update && sudo apt-get upgrade
Run Code Online (Sandbox Code Playgroud)
请参阅Ubuntu 社区文档以及apt
手册页。
归档时间: |
|
查看次数: |
4331 次 |
最近记录: |