0% found this document useful (0 votes)
4 views5 pages

LAB Report No. 02 System Programming (CP-410) Package Management Package Management

This lab report discusses package management in Linux, focusing on the Debian (.deb) and Red Hat (.rpm) formats and their respective tools. It outlines tasks such as installing and verifying packages using RPM and YUM, including the installation of specific software like the nano text editor and the Mail Server group. The conclusion emphasizes the importance of effective package management for system administration in enterprise environments.

Uploaded by

Usman Abdullah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views5 pages

LAB Report No. 02 System Programming (CP-410) Package Management Package Management

This lab report discusses package management in Linux, focusing on the Debian (.deb) and Red Hat (.rpm) formats and their respective tools. It outlines tasks such as installing and verifying packages using RPM and YUM, including the installation of specific software like the nano text editor and the Mail Server group. The conclusion emphasizes the importance of effective package management for system administration in enterprise environments.

Uploaded by

Usman Abdullah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

LAB Report No.

02
System Programming (CP-410)
Package Management
Package Management:
Most Linux distributions have a package management system with online repositories
containing thousands of packages. This makes it very easy to install and remove applications,
operating system components, documentation and much more. We first discuss the
Debian package format .deb and its tools. This should be similar on Debian, Ubuntu, Mint
and all derived distributions. Then we look at the Red Hat package format. rpm and its tools
rpm and yum. This should be similar on Red Hat, Fedora, CentOS and all derived
distributions.
Repository:
A lot of software and documentation for your Linux distribution is available as packages in
one or more centrally distributed repositories. These packages in such a repository are
tested and very easy to install (or remove) with a graphical or command line installer.
Objectives:

• Complete Understanding of Commands regarding the installation of a package on both


RHEL & Debian Platform
Lab Task
1. Install Any Package Using RPM
To install a package using RPM-based package management, the dnf command was used to
install the nano text editor: sudo dnf install -y nano
Verification: rpm
-q nano
This command checks whether nano is successfully installed

2. Verify Whether gcc, sudo, and wesnoth are Installed


To verify if gcc, sudo, and wesnoth are installed, the following command was executed:
rpm -q gcc sudo wesnoth
Output Interpretation:
• If installed, the package name and version are displayed.
If not installed, an error message stating "package is not installed" is shown.

3. Use yum to search for and install the scp, tmux, and man-pages packages. Did you find
them all?

Yes I found the packages tmux, and man-pages as shown in figure

But SCP is not available

4. First install and then remove samba including configuration files.


Installing Samba Server
Removing Samba server and its configuration files

5. First obtain list of all group software and Install E-mail server using group install
Obtaining all groups information and also get the information of hidden groups
sudo dnf group list
Installing E-mail server with Group install as in figure

sudo dnf group install -y "Mail Server"


Conclusion

Through this lab, we successfully installed, verified, and removed packages using RPM and
YUM on CentOS 9. The ability to manage dependencies and utilize package groups enhances
system administration skills and ensures efficient software management in enterprise
environments.

You might also like