Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 885 Bytes

03-Lab-RPM-and-YUM.md

File metadata and controls

35 lines (26 loc) · 885 Bytes

Lab - RPM and YUM

Which package managers would you use on centos machine

Centos makes use of RPM and YUM

Use an rpm command and find out the exact package name for wget installed in this server

$ rpm -qa |grep wget

To install a package for firefox browser that has been downloaded under /home/bob in the system. Caution: It might fail due to failed dependencies

$ sudo rpm -ivh /home/bob/firefox-68.6.0-1.el7.centos.x86_64.rpm

To install a package for firefox browser along with its dependencies

$ sudo yum install firefox -y

To check how many software repositories are configured for YUM in the system

$ sudo yum repolist

To check which package provides tcpdump command

$ sudo yum provides tcpdump