02 Task Performance 1
02 Task Performance 1
Laboratory Exercise
Linux Tutorial
There are three package managers that are used in Linux Operating System
rpm (Red Hat Package Manager) – can install an RPM file.
yum (Yellowdog Updater Modifier) – front-end tool for rpm to have minimal issue
when installing RPM files.
apt (Advanced Packaging Tool) – command-line packager tool for Debian Linux.
Step-by-step procedure:
1. To do software installations on Linux, you need to open Ubuntu on VirtualBox.
2. Upon opening Ubuntu, click the lower left section with many dots, and type in the search
bar “terminal”.
3. Type ‘sudo apt install gcc’ in the terminal. Using the sudo ‘apt’ command-line, it is a
type of package manager that installs, update, upgrade, or remove software. An example
of a package name is ‘gcc’.
(This is an example
of typing the
command ‘sudo apt
install gcc’ into the
terminal as the
input, and its output
after successfully
executing it.)
4. Another example of a package name is emacs. Type the same command in installing it.
Type ‘sudo apt install emacs’.
(This is an example of typing the command ‘sudo apt install emacs’ into the terminal as the
input, and its output after successfully executing it.)
5. In doing a software maintenance, you can check the installed package name by using a
package manager called “yum” and “rpm”.
- In rpm, there are two commands used in upgrading; -U(upgrade) and -F(freshen).
Under its options are –replacepkgs, --replacefiles, --oldpackage, --force.
- In yum, there are several commands to do software maintenance such as check-
update, downgrade, update, and reinstall.
- Given the example below, the package manager “yum” is used for software
maintenance. Its general format is ‘yum [command] [package name]’, in this case
type in ‘yum check-update emacs.
6. Another way of doing a software maintenance is using the remove command in yum.
Type ‘yum remove [packagename]’. In this example, type ‘yum remove emacs’. You can
also use the apt package manager in removing a package name. Type ‘sudo apt remove
emacs’.
(This is an
example of