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 ID: 613930
Download Presentation The PPT/PDF document "Module 10 – Linux Installations" is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.
Slide1
Module 10 – Linux Installations
Slide2
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 BaseRPM Package ManagerSlide3
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)Redhat based Linux DistroSlide4
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]
Checking, Installing and Uninstalling a package Slide5
Yum allows automatic updates, package and dependency management.The daemon configuration file is located under /
etc and called yum.confThe repositories files reside under /etc/tum.repo.d and all files ending with a .repo are checked by the daemon Yum – The package managerSlide6
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 kernelTo install a package:# yum install [Package-Name]Yum CommandsSlide7
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
Yum CommandsSlide8
To extract a .tar.gz use the following command:# tar –zxvf
file.tar.gzTo create a tar.gz file:# tar -czf new-tar-file-name.tar.gz /etcThe tar and gzip- extracting and creatingSlide9
Make sure you have the Linux main C compiler installed (gcc
) Download the package:# wget <link to the tarball>Untar the package Read the README or INSTALL fileUsually 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)
Compile and Install Software from Source Code on LinuxSlide10
<
Insert Picture Here> Slide11