Module 10 Linux Installations RPM Package Manager Wikipedia

  • Slides: 11
Download presentation
Module 10 – Linux Installations

Module 10 – Linux Installations

RPM Package Manager • Wikipedia: Red Hat Package Manager or RPM Package Manager (RPM)

RPM Package Manager • Wikipedia: Red Hat Package Manager or RPM Package Manager (RPM) is a package management system. The name RPM variously refers to the. rpm file format, files in this format, software packaged in such files, and the package manager itself. RPM was intended primarily for Linux distributions; the file format is the baseline package format of the Linux Standard Base

Redhat based Linux Distro • Linux OS based on Redhat distribution (but not only,

Redhat based Linux Distro • Linux OS based on Redhat distribution (but not only, Linux Suse as well) are builed from the ground up with multiple RPM packages. • We can use the rpm command to receive a complete list of all the rpm packages in the system: # rpm –qa (Query All)

Checking, Installing and Uninstalling a package • To check the content of a package:

Checking, Installing and Uninstalling a package • To check the content of a package: # rpm –qlp [package-name] • To install a new package: # rpm –hiv [package-name] • To uninstall a package: # rpm –e [package-name]

Yum – The package manager • Yum allows automatic updates, package and dependency management.

Yum – The package manager • Yum allows automatic updates, package and dependency management. • The daemon configuration file is located under /etc and called yum. conf • The repositories files reside under /etc/tum. repo. d and all files ending with a. repo are checked by the daemon

Yum Commands • To check available updates: # yum check-update • To update the

Yum Commands • To check available updates: # yum check-update • To update the OS: # yum update (You can avoid the Yes/No question by adding the –y option) • To search packages containing the word “kernel” # yum search kernel • To install a package: # yum install [Package-Name]

Yum Commands • Yum is very useful in helping us resolve dependencies in a

Yum Commands • Yum is very useful in helping us resolve dependencies in a package we downloaded: # yum localinstall [Package-Name] • Yum can also aid in installing multiple packages grouped into groups: # yum grouplist (will show us a list of all available groups) # yum groupinstall “group name” • Important ! Removing packages with yum can be accomplished using the yum remove command yet this command requires caution and careful reading

The tar and gzip- extracting and creating • To extract a. tar. gz use

The tar and gzip- extracting and creating • To extract a. tar. gz use the following command: # tar –zxvf file. tar. gz • To create a tar. gz file: # tar -czf new-tar-file-name. tar. gz /etc

Compile and Install Software from Source Code on Linux • Make sure you have

Compile and Install Software from Source Code on Linux • Make sure you have the Linux main C compiler installed (gcc) 1. Download the package: # wget <link to the tarball> 2. Untar the package 3. Read the README or INSTALL file 4. Usually you will need to issue three commands: #. /configure (using the config file to prep the pkg) # make (checking for errors in the compile procces) # make install ( Installing the package)

<Insert Picture Here>

<Insert Picture Here>