Wednesday 25 July 2012

How to Update Linux Workstations and Operating Systems

 How to Update Linux Workstations and Operating Systems:



RPM - RedHat Package Manager

Although RPM was originally used by RedHat, this package management is handled by different types of package management tools specific to each Linux distribution. While OpenSUSE uses the “zypp” package management utility, RedHat Enterprise Linux (REL),Fedora and CentOS use “yum”, and Mandriva and Mageia use “urpmi”.
Therefore, if you are an OpenSUSE user, you will use the following commands:
For updating your package list: zypper refresh
For upgrading your system: zypper update
For installing new software pkgzypper install pkg (from package repository)
For installing new software pkgzypper install pkg  (from package file)
For updating existing software pkg: zypper update -t package pkg
For removing unwanted software pkgzypper remove pkg
For listing installed packages: zypper search -ls
For searching by file name: zypper wp file
For searching by patternzypper search -t pattern pattern
For searching by package name pkg: zypper search pkg
For listing repositories: zypper repos
For adding a repository: zypper addrepo pathname
For removing a repository: zypper removerepo name

If you are a Fedora or CentOS user, you will be using the following commands:
For updating your package list: yum check-update
For upgrading your system: yum update
For installing new software pkgyum install pkg (from package repository)
For installing new software pkg: yum localinstall pkg (from package file)
For updating existing software pkgyum update pkg
For removing unwanted software pkg: yum erase pkg
For listing installed packages: rpm -qa
For searching by file name: yum provides file
For searching by pattern: yum search pattern
For searching by package name pkgyum list pkg
For listing repositories: yum repolist
For adding a repository: (add repo to /etc/yum.repos.d/)
For removing a repository: (remove repo from /etc/yum.repos.d/)

DEB - Debian Package Manager

Debian Package Manager was introduced by Debian and later adopted by all derivatives of Debian - Ubuntu, Mint, Knoppix, etc. 
This is a relatively simple and standardized set of tools, working across all the Debian derivatives. Therefore, if you use any of the distributions managed by the DEB package manager, you will be using the following commands:
For updating your package list: apt-get update
For upgrading your system: apt-get upgrade
For installing new software pkgapt-get install pkg (from package repository)
For installing new software pkgdpkg -i pkg (from package file)
For updating existing software pkgapt-get install pkg
For removing unwanted software pkgapt-get remove pkg
For listing installed package: dpkg -l
For searching by file name: apt-file search path
For searching by patternapt-cache search pattern
For searching by package name pkgapt-cache search pkg
For listing repositoriescat /etc/apt/sources.list
For adding a repository: (edit /etc/apt/sources.list)
For removing a repository: (edit /etc/apt/sources.list)

2 comments:

  1. Excellent Blog! I would like to thank you for the efforts you have made in writing this post. Gained lots of knowledge.
    Red hat authorized training center in India

    ReplyDelete