Redhat Package Manager
Package Syntax: package_name -version- release. arch .rpm
postfix- 2.6.6-2. el6. x86_64 .rpm
rpm -e Removes a given package name
-i Installs a given package
-h Shows hash progress when installing
-U Upgrades a given package
-v Provides verbose output
Query Options (with -q):
-c Lists all config files
-d Lists all documentation files
-i Displays information about the package
-l Lists the files in a package
If u want install package without removing
# rpm -ivh --replacepkgs nano-2.2.6-1.x86_64.rpm
Query the information from the nano package:
# rpm -qi nano
Find out where the /etc/rsyslog.conf file came from by doing the following:
# rpm -qf /etc/rsyslog.conf
rsyslog-4.6.2-2.el6.x86_64
Use the -c option to find all config files:
# rpm -qc rsyslog
/etc/logrotate.d/syslog
/etc/rsyslog.conf
/etc/sysconfig/rsyslog
You can use the -R option to find out whether a package has any dependencies:
# rpm -qR rsyslog
==============================================================
Yellowdog Update Modifier (YUM)
==============================================================
The yum command has access to repositories where tons of packages are kept and can install, upgrade, or remove them for you automatically. Yum also takes care of resolving and installing any dependencies for
you, which the rpm command can’t do, following are basic commands for yum management.
clean Removes cached data
erase Removes a package from the system
grouplist Displays available package groups
groupinstall Installs the packages within a group
info Displays information about a package
install Installs a package on the system
search Enables you to search for a package
update Updates a package
You can use the grouplist command to get a listing of all available “groups”:
# yum grouplist
# yum groupinstall Emacs
# yum groupinstall “Development Tools”
Package Syntax: package_name -version- release. arch .rpm
postfix- 2.6.6-2. el6. x86_64 .rpm
rpm -e Removes a given package name
-i Installs a given package
-h Shows hash progress when installing
-U Upgrades a given package
-v Provides verbose output
Query Options (with -q):
-c Lists all config files
-d Lists all documentation files
-i Displays information about the package
-l Lists the files in a package
If u want install package without removing
# rpm -ivh --replacepkgs nano-2.2.6-1.x86_64.rpm
Query the information from the nano package:
# rpm -qi nano
Find out where the /etc/rsyslog.conf file came from by doing the following:
# rpm -qf /etc/rsyslog.conf
rsyslog-4.6.2-2.el6.x86_64
Use the -c option to find all config files:
# rpm -qc rsyslog
/etc/logrotate.d/syslog
/etc/rsyslog.conf
/etc/sysconfig/rsyslog
You can use the -R option to find out whether a package has any dependencies:
# rpm -qR rsyslog
==============================================================
Yellowdog Update Modifier (YUM)
==============================================================
The yum command has access to repositories where tons of packages are kept and can install, upgrade, or remove them for you automatically. Yum also takes care of resolving and installing any dependencies for
you, which the rpm command can’t do, following are basic commands for yum management.
clean Removes cached data
erase Removes a package from the system
grouplist Displays available package groups
groupinstall Installs the packages within a group
info Displays information about a package
install Installs a package on the system
search Enables you to search for a package
update Updates a package
You can use the grouplist command to get a listing of all available “groups”:
# yum grouplist
# yum groupinstall Emacs
# yum groupinstall “Development Tools”
No comments:
Post a Comment