Presentation is loading. Please wait.

Presentation is loading. Please wait.

Module 10 – Linux Installations. Wikipedia: Red Hat Package Manager or RPM Package Manager (RPM) is a package management system. The name RPM variously.

Similar presentations


Presentation on theme: "Module 10 – Linux Installations. Wikipedia: Red Hat Package Manager or RPM Package Manager (RPM) is a package management system. The name RPM variously."— Presentation transcript:

1 Module 10 – Linux Installations

2 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 RPM Package Manager

3 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 Distro

4 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

5 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 – The package manager

6 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

7 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 Commands

8 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 The tar and gzip- extracting and creating

9 Make sure you have the Linux main C compiler installed (gcc) 1. Download the package: # wget 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) Compile and Install Software from Source Code on Linux

10

11


Download ppt "Module 10 – Linux Installations. Wikipedia: Red Hat Package Manager or RPM Package Manager (RPM) is a package management system. The name RPM variously."

Similar presentations


Ads by Google