从终端安装 JAGS(只是另一个 Gibbs 采样器)

And*_*esD 3 command-line

我只是想知道如何从 Ubuntu 终端安装 JAGS。谢谢。

ear*_*Lon 6

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.

Update Available Software

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)

Install a package

sudo apt-get install jags
Run Code Online (Sandbox Code Playgroud)

Remove a Package

sudo apt-get remove jags
Run Code Online (Sandbox Code Playgroud)

Search for Packages

sudo apt-cache search jags
Run Code Online (Sandbox Code Playgroud)

Update (Upgrade) Installed Software

一旦你使用更新了的软件列表中可用的存储库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 手册页