删了的微信聊天记录删除了怎么恢复好友怎么找回来

20 Linux YUM (Yellowdog Updater, Modified) Commands for Package Management
| Published: August 11, 2012 |
Last Updated: September 13, 2012
Download Your Free eBooks NOW -
In this article, we will learn how to install, update, remove, find packages, manage packages and repositories on Linux systems using YUM (Yellowdog Updater Modified) tool developed by RedHat. The example commands shown in this article are practically tested on our
server, you can use these material for study purpose, certifications or just to explore ways to install new packages and keep your system up-to-date. The basic requirement of this article is, you must have a basic understanding of commands and a working Linux operating system, where you can explore and practice all the commands listed below.
20 Linux Yum Commands
What is YUM?
YUM (Yellowdog Updater Modified) is an open source command-line as well as graphical based package management tool for RPM (RedHat Package Manager) based Linux systems. It allows users and system administrator to easily install, update, remove or search software packages on a systems. It was developed and released by Seth Vidal under GPL (General Public License) as an open source, means anyone can allowed to download and access the code to fix bugs and develop customized packages. YUM uses numerous third party repositories to install packages automatically by resolving their dependencies issues.
1. Install a Package with YUM
To install a package called , just run the below command it will automatically find and install all required dependencies for Firefox.
# yum install firefox
Loaded plugins: fastestmirror
Dependencies Resolved
================================================================================================
Repository
================================================================================================
10.0.6-1.el6.centos
Updating for dependencies:
10.0.6-1.el6.centos
Transaction Summary
================================================================================================
0 Package(s)
2 Package(s)
Total download size: 32 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): firefox-10.0.6-1.el6.centos.i686.rpm
(2/2): xulrunner-10.0.6-1.el6.centos.i686.rpm
------------------------------------------------------------------------------------------------
firefox.i686 0:10.0.6-1.el6.centos
Dependency Updated:
xulrunner.i686 0:10.0.6-1.el6.centos
The above command will ask confirmation before installing any package on your system. If you want to install packages automatically without asking any confirmation, use option -y as shown in below example.
# yum -y install firefox
2. Removing a Package with YUM
To remove a package completely with their all dependencies, just run the following command as shown below.
# yum remove firefox
Loaded plugins: fastestmirror
Setting up Remove Process
Resolving Dependencies
--& Running transaction check
---& Package firefox.i686 0:10.0.6-1.el6.centos set to be erased
--& Finished Dependency Resolution
Dependencies Resolved
====================================================================================================
Repository
====================================================================================================
10.0.6-1.el6.centos
Transaction Summary
====================================================================================================
1 Package(s)
0 Package(s)
0 Package(s)
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
: firefox-10.0.6-1.el6.centos.i686
firefox.i686 0:10.0.6-1.el6.centos
Same way the above command will ask confirmation before removing a package. To disable confirmation prompt just add option -y as shown in below.
# yum -y remove firefox
3. Updating a Package using YUM
Let’s say you have outdated version of
package and you want to update it to the latest stable version. Just run the following command it will automatically resolves all dependencies issues and install them.
# yum update mysql
Loaded plugins: fastestmirror
Dependencies Resolved
============================================================================================================
Repository
============================================================================================================
2.0.5-24.el5_8.1
Transaction Summary
============================================================================================================
0 Package(s)
1 Package(s)
Total size: 144 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
vsftpd.i386 0:2.0.5-24.el5_8.1
4. List a Package using YUM
Use the list function to search for the specific package with name. For example to search for a package called openssh, use the command.
# yum list openssh
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.
* epel: mirror.
* extras: mirror.
* rpmforge: mirror.nl.leaseweb.net
* updates: mirror.nus.edu.sg
Installed Packages
openssh.i386
4.3p2-72.el5_6.3
Available Packages
4.3p2-82.el5
To make your search more accurate, define package name with their version, in case you know. For example to search for a specific version openssh-4.3p2 of the package, use the command.
# yum list openssh-4.3p2
5. Search for a Package using YUM
If you don’t remember the exact name of the package, then use search function to search all the available packages to match the name of the package you specified. For example, to search all the packages that matches the word .
# yum search vsftpd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.
* epel: mirror.
* extras: mirror.
* rpmforge: mirror.nl.leaseweb.net
* updates: ftp.iitm.ac.in
============================== Matched: vsftpd ========================
ccze.i386 : A robust log colorizer
pure-ftpd-selinux.i386 : SELinux support for Pure-FTPD
vsftpd.i386 : vsftpd - Very Secure Ftp Daemon
6. Get Information of a Package using YUM
Say you would like to know information of a package before installing it. To get information of a package just issue the below command.
# yum info firefox
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.
* epel: mirror.
* extras: mirror.
* rpmforge: mirror.nl.leaseweb.net
* updates: ftp.iitm.ac.in
Available Packages
: 1.el5.centos
: Mozilla Firefox Web browser
: http://www.mozilla.org/projects/firefox/
: MPLv1.1 or GPLv2+ or LGPLv2+
Description: Mozilla Firefox is an open-source web browser, designed for standards
: compliance, performance and portability.
7. List all Available Packages using YUM
To list all the available packages in the Yum database, use the below command.
# yum list | less
8. List all Installed Packages using YUM
To list all the installed packages on a system, just issue below command, it will display all the installed packages.
# yum list installed | less
9. Yum Provides Function
Yum provides function is used to find which package a specific file belongs to. For example, if you would like to know the name of the package that has the /etc/httpd/conf/httpd.conf.
# yum provides /etc/httpd/conf/httpd.conf
Loaded plugins: fastestmirror
httpd-2.2.3-63.el5.centos.i386 : Apache HTTP Server
Matched from:
: /etc/httpd/conf/httpd.conf
httpd-2.2.3-63.el5.centos.1.i386 : Apache HTTP Server
Matched from:
: /etc/httpd/conf/httpd.conf
httpd-2.2.3-65.el5.centos.i386 : Apache HTTP Server
Matched from:
: /etc/httpd/conf/httpd.conf
httpd-2.2.3-53.el5.centos.1.i386 : Apache HTTP Server
: installed
Matched from:
: Provides-match: /etc/httpd/conf/httpd.conf
10. Check for Available Updates using Yum
To find how many of installed packages on your system have updates available, to check use the following command.
# yum check-update
11. Update System using Yum
To keep your system up-to-date with all security and binary package updates, run the following command. It will install all latest patches and security updates to your system.
# yum update
12. List all available Group Packages
In Linux, number of packages are bundled to particular group. Instead of installing individual packages with yum, you can install particular group that will install all the related packages that belongs to the group. For example to list all the available groups, just issue following command.
# yum grouplist
Installed Groups:
Administration Tools
DNS Name Server
Dialup Networking Support
Engineering and Scientific
FTP Server
Java Development
Legacy Network Server
Available Groups:
Authoring and Publishing
Cluster Storage
Clustering
Development Libraries
Development Tools
Educational Software
KDE (K Desktop Environment)
KDE Software Development
13. Install a Group Packages
To install a particular package group, we use option as groupinstall. Fore example, to install “MySQL Database“, just execute the below command.
# yum groupinstall 'MySQL Database'
Dependencies Resolved
=================================================================================================
Repository
=================================================================================================
2.2.11-10.el5
Installing for dependencies:
unixODBC-libs
2.2.11-10.el5
Transaction Summary
=================================================================================================
1 Package(s)
1 Package(s)
Total size: 841 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing
: unixODBC-libs 1/3
: unixODBC
: unixODBC
Dependency Installed:
unixODBC-libs.i386 0:2.2.11-10.el5
unixODBC.i386 0:2.2.11-10.el5
14. Update a Group Packages
To update any existing installed group packages, just run the following command as shown below.
# yum groupupdate 'DNS Name Server'
Dependencies Resolved
================================================================================================================
Repository
================================================================================================================
30:9.3.6-20.P1.el5_8.2
bind-chroot
30:9.3.6-20.P1.el5_8.2
Updating for dependencies:
30:9.3.6-20.P1.el5_8.2
bind-utils
30:9.3.6-20.P1.el5_8.2
Transaction Summary
================================================================================================================
0 Package(s)
4 Package(s)
Total size: 2.0 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
: bind-libs
: bind-chroot
: bind-utils
: bind-chroot
: bind-utils
: bind-libs
bind.i386 30:9.3.6-20.P1.el5_8.2
bind-chroot.i386 30:9.3.6-20.P1.el5_8.2
Dependency Updated:
bind-libs.i386 30:9.3.6-20.P1.el5_8.2
bind-utils.i386 30:9.3.6-20.P1.el5_8.2
15. Remove a Group Packages
To delete or remove any existing installed group from the system, just use below command.
# yum groupremove 'DNS Name Server'
Dependencies Resolved
===========================================================================================================
Repository
===========================================================================================================
30:9.3.6-20.P1.el5_8.2
bind-chroot
30:9.3.6-20.P1.el5_8.2
Transaction Summary
===========================================================================================================
2 Package(s)
0 Package(s)
0 Package(s)
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
warning: /etc/sysconfig/named saved as /etc/sysconfig/named.rpmsave
: bind-chroot
bind.i386 30:9.3.6-20.P1.el5_8.2
bind-chroot.i386 30:9.3.6-20.P1.el5_8.2
16. List Enabled Yum Repositories
To list all enabled Yum repositories in your system, use following option.
# yum repolist
CentOS-5 - Base
Extra Packages for Enterprise Linux 5 - i386
CentOS-5 - Extras
mod-pagespeed
mod-pagespeed
RHEL 5 - RPMforge.net - dag
enabled: 11,290
CentOS-5 - Updates
repolist: 20,824
16. List all Enabled and Disabled Yum Repositories
The following command will display all enabled and disabled yum repositories on the system.
# yum repolist all
CentOS-5.0 - Base
C5.0-centosplus
CentOS-5.0 - Plus
C5.0-extras
CentOS-5.0 - Extras
CentOS-5 - Base
Extra Packages for Enterprise Linux 5 - i386
CentOS-5 - Extras
repolist: 20,824
17. Install a Package from Specific Repository
To install a particular package from a specific enabled or disabled repository, you must use –enablerepo option in your yum command. For example to
package, just execute the command.
# yum --enablerepo=epel install phpmyadmin
Dependencies Resolved
=============================================================================================
Repository
=============================================================================================
Installing:
phpMyAdmin
3.5.1-1.el6
Transaction Summary
=============================================================================================
1 Package(s)
Total download size: 4.2 M
Installed size: 17 M
Is this ok [y/N]: y
Downloading Packages:
phpMyAdmin-3.5.1-1.el6.noarch.rpm
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : phpMyAdmin-3.5.1-1.el6.noarch
: phpMyAdmin-3.5.1-1.el6.noarch
Installed:
phpMyAdmin.noarch 0:3.5.1-1.el6
18. Interactive Yum Shell
Yum utility provides a custom shell where you can execute multiple commands.
# yum shell
Loaded plugins: fastestmirror
Setting up Yum Shell
& update httpd
Loading mirror speeds from cached hostfile
* base: mirrors.sin3.sg.voxel.net
* epel: ftp.riken.jp
* extras: mirrors.sin3.sg.voxel.net
* updates: mirrors.sin3.sg.voxel.net
Setting up Update Process
19. Clean Yum Cache
By default yum keeps all the repository enabled package data in /var/cache/yum/ with each sub-directory, to clean all cached files from enabled repository, you need to run the following command regularly to clean up all the cache and make sure that there is nothing unnecessary space is using. We don’t want to give the output of the below command, because we like to keep cached data as it is.
# yum clean all
20. View History of Yum
To view all the past transactions of yum command, just use the following command.
# yum history
Loaded plugins: fastestmirror
| Login user
| Date and time
| Action(s)
-------------------------------------------------------------------------------
15:19 | Install
15:11 | Install
15:10 | Erase
17:44 | Install
12:19 | Install
12:14 | Install
12:12 | I, U
13:01 | Install
20:13 | I, U
1 | System
17:15 | Install
history list
We have tried to cover all the basic to advance yum commands with their examples. If anything related to yum commands may have missed out. Please update us through our comment box. So, we keep updating the same based on feedback’s received.
If You Appreciate What We Do Here On TecMint, You Should Consider:
Stay Connected to:
Subscribe to our email updates:
if you planning to
($3.82/month).
Become a Supporter -
Support us by
in PDF format.
Support us by taking our
We are thankful for your never ending support.
Ravi Saive
I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: ,
Your name can also be listed here. Got a tip?
to become an TecMint author.
Linux Foundation Certification
Exam Study Guide to
Linux System Administrator Bundle with 7-Courses (96% off)
Ending In: 3 days
Computer Hacker Professional Certification Course (96% Off)
Ending In: 4 days
Download Free Linux eBooks
Never Miss Any Linux Tutorials, Guides, Tips and Free eBooks
Join Our Community Of 150,000+ Linux Lovers and get a weekly newsletter in your inbox
Join Over 300K+ Linux UsersCorelDRAW X5中文版下载 v15.2.0.661_CorelDRAW X5官方简体中文版 - pc6下载站下载中心-剑灵官方网站-腾讯游戏
下载中心DOWNLOAD
&&&下载中心
完整客户端QQ号直接登录,无需激活
文件大小:16.2GB
MD5码:fe54b372ebb29ccfaa025644
重要提醒:安装客户端时,会提示安装DXSETUP及vcredist_x86两个组件(页面底部可手动下载),请务必安装这2个组件,不要取消这两个安装项的勾选。否则可能造成无法进入游戏或者客户端崩溃等问题。
手动补丁下载
v2.211.6607.6
v2.211.6607.4 用户
v2.211.6607.4
v2.203.6550.6 用户
v2.203.6550.6
v2.203.6550.4 用户
v2.203.6550.4
v2.203.6543.2 用户
v2.203.6543.2
v2.203.6541.2 用户
v2.203.6541.2
v2.197.6339.12 用户
游戏启动畅快加速
电脑管家 剑灵启动加速定制版运行定制版管家,可以让剑灵加速启动,减少60%等待时间,享受固态硬盘般的启动速度。建议内存2G以上的玩家下载安装。
迅游加速器
剑灵专属游戏加速定制版本下载仅需10秒左右,有效地为您解决卡机、掉线、延迟高、登录难等问题,助你极致畅玩游戏
游戏组件及驱动下载
DirectX June 2010 SDK XP,Vista,Win7
Microsofe visual C++ Redistributable
Geforce r331.93-beta Wed Nov 27, 2013 Win7,Win8,Vista
Geforce r331.93-beta Wed Nov 27, 2013 Win7,Win8,Vista
配置要求以及推荐
双核及以上
双核及以上
推荐第四代智能英特尔酷睿i3处理器
推荐第四代智能英特尔酷睿i5处理器
推荐第四代智能英特尔酷睿i7处理器
推荐第四代智能英特尔酷睿i7-4770K处理器
4.00GB以上
显卡(NVIDIA GeForce系列)
GT 620 DDR3
GT 740M GDDR5
GTX 550 TiGT 650M
GTX 750 GTX 750 TiGTX 760M
GTX 660 GTX 760
GTX 770GTX 680M
7200转机械硬盘
7200转机械硬盘
7200转机械硬盘
7200转机械硬盘
7200转机械硬盘或SSD(固态硬盘)
7200转机械硬盘或SSD固态硬盘)
Windows 7(64位)
Windows 7(64位)
Windows 7(64位)
Windows 7(64位)
Windows 7(64位)
(窗口化)
(窗口化)
《剑灵》(BNS),全称Blade & Soul,是由著名网游开发商NCSOFT开发,腾讯游戏代理的一款&全新东方风格3D&MMORPG。《剑灵》在设计上力求突破传统,华丽唯美的画面,流畅动感的动作,拳拳到肉的打击感,以及飞天入地的体验令人心驰神往,是一款具有划时代创新精神的网游巨作。

我要回帖

更多关于 能找回微信删掉的好友 的文章

 

随机推荐