Install/Uninstall package software on Linux

rpm dpkg yum apt-get

 

I. RPM (Redhat Package Manager)

  • Use RPM to add a new software or applications is an easy process.
  • RPM is so successful as the primary package manager by Linux distributions, including SUSE and Mandrake.
  • As an Linux Administrator, we have to install, upgrade, remove and maintain many version of RPM packages.
  • One of advantage of RPM is that you cn verify the integrity of packages and files.
  • Query a package which installed on your Linux box.
[root@localhost ~]# rpm -q kernel
kernel-2.6.32-279.el6.x86_64
kernel-2.6.32-358.2.1.el6.x86_64
[root@localhost ~]#
  • Listing the files in an RPM package
[root@localhost ~]# rpm -ql openssh
/etc/ssh
/etc/ssh/moduli
/usr/bin/ssh-keygen
/usr/libexec/openssh
/usr/libexec/openssh/ssh-keysign
/usr/share/doc/openssh-5.3p1
/usr/share/doc/openssh-5.3p1/CREDITS
/usr/share/doc/openssh-5.3p1/ChangeLog
/usr/share/doc/openssh-5.3p1/INSTALL
/usr/share/doc/openssh-5.3p1/LICENCE
/usr/share/doc/openssh-5.3p1/OVERVIEW
/usr/share/doc/openssh-5.3p1/PROTOCOL
/usr/share/doc/openssh-5.3p1/PROTOCOL.agent
/usr/share/doc/openssh-5.3p1/README
/usr/share/doc/openssh-5.3p1/README.dns
/usr/share/doc/openssh-5.3p1/README.nss
/usr/share/doc/openssh-5.3p1/README.platform
/usr/share/doc/openssh-5.3p1/README.privsep
/usr/share/doc/openssh-5.3p1/README.smartcard
/usr/share/doc/openssh-5.3p1/README.tun
/usr/share/doc/openssh-5.3p1/TODO
/usr/share/doc/openssh-5.3p1/WARNING.RNG
/usr/share/man/man1/ssh-keygen.1.gz
/usr/share/man/man8/ssh-keysign.8.gz
[root@localhost ~]#
  • RPMs and CPUs : when we download rpm package, End of the name in the file will show you which package for your Linux system.
    • noarch.rpm : don’t denpend on CPU, it can install on any computers.
    • i586.rpm : Intel 32-bit systems
    • i686.rpm : Intel 32-bit systems and AMD 32 bit CPUs.
    • ia64.rpm : for Intel 64 bit systems.
    • sparc.rpm : Sun Microsystem Sparc CPU.

1. Install software package on Centos/Redhat RHEL/Fedora

 

2. Uninstall software package on Centos/Redhat RHEL/Fedora

 

3. Upgrade software package on Centos/Redhat RHEL/Fedora by RPM

 

II. DPKG (Package Manager for Debian)

  •  We can install, remove, and build packages, but unlike other package management system’s it can not automatically download and install packages and their dependencies.
  • The primary and more user-friendly front-end for dpkg is aptitude.
  • List all packages installed on Ubuntu/Debian System
dpkg -l
  • List all files installed by dpkg package
root@ubuntu:~# dpkg -L zip
/.
/usr
/usr/bin
/usr/bin/zipnote
/usr/bin/zip
/usr/bin/zipsplit
/usr/bin/zipcloak
/usr/share
/usr/share/doc
/usr/share/doc/zip
/usr/share/doc/zip/TODO
/usr/share/doc/zip/copyright
/usr/share/doc/zip/WHATSNEW
/usr/share/doc/zip/changelog.Debian.gz
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/zipcloak.1.gz
/usr/share/man/man1/zipsplit.1.gz
/usr/share/man/man1/zipnote.1.gz
/usr/share/man/man1/zip.1.gz
/usr/share/doc/zip/changelog.gz
root@ubuntu:~#
  • Command dpkg -i packagename.deb for installing Debian package.
  • Command dpkg -r packagename for remove Debian package.

 

1. Install software package on Ubuntu/Debian

 

2. Uninstall software package on Ubuntu/Debian

 

Thanks for using IThelpblog.com.

Leave a Reply

Your email address will not be published. Required fields are marked *

Go to top