What if I don't have wget?

QuestionsQuestions8 SkillsProYour First Linux LabNov, 10 2025
068

If you don't have wget, you can use curl to download htop. Here’s how you can do it:

  1. Download the source code using curl:

    curl -O https://htop.dev/downloads/htop-3.2.0.tar.gz
  2. Extract the downloaded file:

    tar -xzf htop-3.2.0.tar.gz
    cd htop-3.2.0
  3. Install dependencies (if you have access to install them locally):
    You may need to install dependencies like ncurses. If you can't install them, you might need to compile them from source as well.

  4. Compile and install:

    ./configure --prefix=$HOME/.local
    make
    make install
  5. Add to your PATH:
    Add the following line to your .bashrc or .zshrc file:

    export PATH=$HOME/.local/bin:$PATH
  6. Load the updated PATH:

    source ~/.bashrc  # or source ~/.zshrc
  7. Run htop:

    htop

This way, you can download and install htop without wget.

0 Comments

no data
Be the first to share your comment!