Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Using Linux terminal Installing and removing packages - The real heart of a pack

ID: 3744133 • Letter: U

Question

Using Linux terminal

Installing and removing packages - The real heart of a package manager is the ability to install packages, remove packages, and to handle the dependencies that are associated with a specific release of a package. Package managers differ depending on the Linux distribution.

Using your distribution, install the command line tool “htop”. What is the command to install htop?_______________________________________ What is the command to remove htop? ______________________________________

Explanation / Answer

Following are the linux terminal commands to install 'htop' :

1. To check if your repositories are up-to-date :

sudo apt-get update

2. To install 'htop'

sudo apt-get install -y htop

This -y command automatically does the installation for us.

Following are the linux terminal commands to remove 'htop' :

1. This will remove the htop package :

sudo apt-get remove htop

2. This will remove htop package and any other dependant package which are no longer needed.

sudo apt-get remove --auto-remove htop

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote