Professional Documents
Culture Documents
Lab 7 W0813100 1
Lab 7 W0813100 1
Package Management
Part 0: Change your hostname
1. Run the command hostname w{your student number} for example, hostname
w01234567
Part 1: Looking up information on a package
1. Save all the answers of this documents in ~/lab6.txt
2. Run the command apt info tmux
3. What is the version number of tmux? __________
5. Lookup the info on the php package. What is the version available? ________
6. What is the latest version of php available? _________
7. Lookup the info on apache web server (the apache2 package)? _________
Part 2: Install packages with apt
1. Install apt-file using the command apt install apt-file
2. Accept installing the extra packages by typing y followed by Enter
4. Verify htop is working by running the htop command (Press F10 to quit or play
around to learn a bit about htop).
5. Verify the installation by running the command apt-file update
Part 3: Listing packages using apt
1. Run the command apt list --installed
2. Noitce how there are more packages then available screen space? Pipe the output
of the command to less like: apt list --installed | less
3. What if we want to know how many packages there are? Well notice the first line
just says “Listing” so we want to skip that, so instead of piping to less, pipe to tail -n+2
this will show all lines starting from the 2nd line. Next
pipe the output of that command to wc -l
How many packages are installed? ____200_____
4. List all available packages with apt list. How many are there? _____
___
5. Find the apache2-bin package, what version is it? ______
______
___________
What is the architecture that is supported? _________TREE________________
3. Is that package installed (Use apt info to find out, look for the fields APT-Manual-
Installed. Remember if it is yes you manually installed the package, if it is no it has been
installed as a dependency)? ___________
4. Now find a package that has the file bin/ifconfig command using the apt-file search
bin/ifconfig
wget https://downloads.rclone.org/v1.56.1/rclone-v1.56.1-linux-amd64.deb