If you don't have wget, you can use curl to download htop. Here’s how you can do it:
-
Download the source code using curl:
curl -O https://htop.dev/downloads/htop-3.2.0.tar.gz -
Extract the downloaded file:
tar -xzf htop-3.2.0.tar.gz cd htop-3.2.0 -
Install dependencies (if you have access to install them locally):
You may need to install dependencies likencurses. If you can't install them, you might need to compile them from source as well. -
Compile and install:
./configure --prefix=$HOME/.local make make install -
Add to your PATH:
Add the following line to your.bashrcor.zshrcfile:export PATH=$HOME/.local/bin:$PATH -
Load the updated PATH:
source ~/.bashrc # or source ~/.zshrc -
Run htop:
htop
This way, you can download and install htop without wget.
