module 10 – linux installations. wikipedia: red hat package manager or rpm package manager (rpm)...

11
Module 10 – Linux Installations

Upload: elmer-moody

Post on 25-Dec-2015

216 views

Category:

Documents


3 download

TRANSCRIPT

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

Module 10 – Linux Installations

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

• 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

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

• 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

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

• 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

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

• 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

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

• 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

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

• 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

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

• 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

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

• 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)

Compile and Install Software from Source Code on Linux

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

<Insert Picture Here>

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