Install btop on Linux
Install or upgrade btop from the static binary archive published on GitHub, with install paths and uninstall steps.
btop is a text-mode resource monitor (CPU, memory, disks, network, processes). The static binary archive published on GitHub can be installed without a package manager.
Install the published release
mkdir btop
cd btop
wget -O btop-x86_64-linux-musl.tbz https://github.com/aristocratos/btop/releases/download/v1.2.8/btop-x86_64-linux-musl.tbz
tar xvf btop-x86_64-linux-musl.tbz
sudo make install
cd ..
rm btop -rf
Then start btop, or run sudo /usr/local/bin/btop with root privileges.
Install paths
sudo make install installs the following files:
| Item | Path |
|---|---|
| Binary | /usr/local/bin/btop |
| Documentation | /usr/local/share/btop |
| Themes | /usr/local/share/btop/themes |
| Desktop entry | /usr/local/share/applications/btop.desktop |
| PNG icon | /usr/local/share/icons/hicolor/48x48/apps/btop.png |
| SVG icon | /usr/local/share/icons/hicolor/scalable/apps/btop.svg |
Uninstall
sudo make uninstall
Quick upgrade
Script that downloads the latest release, installs it, and removes the temporary folder:
echo "Installing/Upgrading btop++"
mkdir ./btopinst &> /dev/null
pushd ./btopinst &> /dev/null
wget -q https://github.com/aristocratos/btop/releases/latest/download/btop-x86_64-linux-musl.tbz -O btop.tbz
tar -xjvf btop.tbz &>/dev/null
pushd ./btop &> /dev/null
sudo make -s install &>/dev/null
popd &> /dev/null
popd &> /dev/null
rm -rf ./btopinst
Notes
make uninstalluses the Makefile of the source folder: run it before deleting the extracted folder, or extract the archive again.