Installing/Removing/Updating Packages in an Exercise Environment¶
This article covers exercise virtual machines which use a distribution that leverages the
apt package manager (such as Debian, Ubuntu, Kali). In addition, different distribution package managers, while still using
apt as their package manager, may have different package libraries or names which may not be the same.
The Cyber Range allows instructors to customize their student's exercise environments to their specific needs. One of the ways this can be accomplished is installing and removing packages in the exercise environment.
sudo apt install package_name
- This command allows a user to install a package to the environment, as shown below. You will be asked for confirmation to install the package. In this example we use the
bsdmainutilspackage, but the package can be any one you choose.
sudo apt remove package_name
- This command allows a user to remove a package from the environment, as shown below. You will be asked for confirmation to remove the package.
Updating Package Information¶
The exercise environments have specific versions of software included, and updating packages may affect functionality. We do not recommend updating packages in the environments, so please use at your own risk.
sudo apt update
- This command allows a user to check for available updates for your packages. It will also prompt you with the option to see the list of upgradable packages.
sudo apt upgrade
- This command allows a user to upgrade a package based on the packages found from the
sudo apt update. Running this command may impact functionality.
We recommend using the
apt command, rather than the
apt-get command, as it is more user-friendly. The apt command is what is recommended by Linux distributions. More information on the differences between
apt-get can be found here.
Thank You for Your Feedback!