Package management
• It is a method of installing software(packages) on Linux
from software repositories.
• Repositories are servers from where we can download
packages.
• The features of package management applications are:
1. Package downloading
2. Dependency resolution
3. Quality control
• Install, reinstall, upgrade, and remove packages.
Package management
• Mainly two type packages;
1. rpm (redhat package manager).
extension - .rpm
OS-Centos,Fedora...
2. dpkg (debian package manger).
extension - .deb
OS-Ubundu,Kali Linux...
●
Centos have two package managing tool.
1. # rpm
2. # yum
Package management using rpm

It is a lower level tool.

It allows you to interact with individual packages.

Operating systems using rpm are:
- Centos
- Fedora
- SUSE
- OpenSuSE
- Mandriva
Package management using rpm

There are 5 basic modes for RPM command.
- Install
- Remove
- Upgrade
- Verify
- Query
Package management using rpm

Syntax of rpm:
# rpm [switch] [package name]

Check the architecture of system OS.
# arch

To check OS:
# vim /etc/issue
or
# vim /etc/centos-release
Package management using rpm

Steps :
1. # arch
2. # wget [link location]
(sites – rpm.pbone.net , rpmfind.net)
3. # rpm -ih [package name]
Package management using rpm
1. # rpm -ih [package name]
i – installation
h – hashing(status of installation)
2. # rpm -qa
q - query
a - all
3. # rpm -qf /usr/bin/ssh
f – file
4. # rpm -qc [package name]
c – configuration
5. # rpm -e [package name]
e - erase
Package management using rpm

Issues:
- Dependency error.
Ex : create repo
- it need packages such as
- deltarpm
- python delta rpm
# rpm -qRp [package name]
YUM-[YellowDog Updater Modified]

Used to install packages with dependency.

Syntax:
# yum install <package name> -y
1. # yum search <package name>
2. # yum list installed
3. # yum list all
4. # yum remove <package name> -y
5. # yum update <package name> -y
6. # yum check-update
7. # yum repolist enabled/disabled/all
YUM-[YellowDog Updater Modified]

Configuration file:
/etc/yum.repos.d

The files inside yum.repos.d is repository files

Repositary files will have the location from which packages can
be downloarded based on our OS architecture.

This location is servers

And servers are the repositories
Repositories

To enable extra repositories
1. EPEL repo (Extra Packages for Enterprise Linux)
- fastest repo
2. REMI repo
3. rpmforge repo

package mangement

  • 2.
    Package management • Itis a method of installing software(packages) on Linux from software repositories. • Repositories are servers from where we can download packages. • The features of package management applications are: 1. Package downloading 2. Dependency resolution 3. Quality control • Install, reinstall, upgrade, and remove packages.
  • 3.
    Package management • Mainlytwo type packages; 1. rpm (redhat package manager). extension - .rpm OS-Centos,Fedora... 2. dpkg (debian package manger). extension - .deb OS-Ubundu,Kali Linux... ● Centos have two package managing tool. 1. # rpm 2. # yum
  • 4.
    Package management usingrpm  It is a lower level tool.  It allows you to interact with individual packages.  Operating systems using rpm are: - Centos - Fedora - SUSE - OpenSuSE - Mandriva
  • 5.
    Package management usingrpm  There are 5 basic modes for RPM command. - Install - Remove - Upgrade - Verify - Query
  • 6.
    Package management usingrpm  Syntax of rpm: # rpm [switch] [package name]  Check the architecture of system OS. # arch  To check OS: # vim /etc/issue or # vim /etc/centos-release
  • 7.
    Package management usingrpm  Steps : 1. # arch 2. # wget [link location] (sites – rpm.pbone.net , rpmfind.net) 3. # rpm -ih [package name]
  • 8.
    Package management usingrpm 1. # rpm -ih [package name] i – installation h – hashing(status of installation) 2. # rpm -qa q - query a - all 3. # rpm -qf /usr/bin/ssh f – file 4. # rpm -qc [package name] c – configuration 5. # rpm -e [package name] e - erase
  • 9.
    Package management usingrpm  Issues: - Dependency error. Ex : create repo - it need packages such as - deltarpm - python delta rpm # rpm -qRp [package name]
  • 10.
    YUM-[YellowDog Updater Modified]  Usedto install packages with dependency.  Syntax: # yum install <package name> -y 1. # yum search <package name> 2. # yum list installed 3. # yum list all 4. # yum remove <package name> -y 5. # yum update <package name> -y 6. # yum check-update 7. # yum repolist enabled/disabled/all
  • 11.
    YUM-[YellowDog Updater Modified]  Configurationfile: /etc/yum.repos.d  The files inside yum.repos.d is repository files  Repositary files will have the location from which packages can be downloarded based on our OS architecture.  This location is servers  And servers are the repositories
  • 12.
    Repositories  To enable extrarepositories 1. EPEL repo (Extra Packages for Enterprise Linux) - fastest repo 2. REMI repo 3. rpmforge repo