Saturday, February 27, 2016

Updating packages from particular repository

This is the short note for myself, so that I can refer to this blog, when I forget my ways of doing system administration. We will consider Centos 7 as the linux distro and yum as a package manager. Let's say you have some repos in your /etc/yum.repos.d dir, if you don't know how many and what repos are there, just shoot this yum repolist command in your terminal, which will throw you a sets of repos that you have enabled on your system. So, you want to update a package name zabbix-server-mysql from the zabbix repo, just do
 $ yum --disablerepo="*" --enablerepo="zabbix" install zabbix-server-mysql

remember: zabbix is the unique name that you have got when you ran yum repolist command.

No comments:

Post a Comment