Basic Package Commands

    Install package

    yum install <package name>

    Remove package

    yum remove <package name>

    Install package without GPG Key Verification

    yum install <package> --nogpgcheck

    Remove all packages a word

    yum remove *<package name>*

    Download packages only

    yum install yum-downloadonly

    List installed packages

    yum list installed

    Show which package referes a specific file

    yum provides /etc/httpd/conf/httpd.conf

    Show package description

    yum info <package name>

    Clear local package cache

    yum clean all

    View past transactions

    yum history

    Update Mangement

    Check for updates

    yum check-update

    Install updates

    yum update

    Update only one package

    yum update <package name>

    Download updates only

    yum update --downloadonly

    Group Package Mangement

    Show group list

    yum grouplist

    Install group package

    yum groupinstall 'MySQL Database'

    Update group package

    yum groupupdate 'DNS Name Server'

    Repositorie Mangement

    List enabled repositories

    yum repolist

    List all repositories

    yum repolist all

    Install package from a specific repository

    yum --enablerepo=epel install phpmyadmin

    Add NUX-Desktop Repositorie

    yum install -y http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm

    Add Extra Packages for Enterprise Linux (EPEL) Repositorie

    yum install -y http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm

    Add Enterprise Linux Repo (ELRepo) Repositorie

    yum install -y http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm

    Add LinuxTECH.NET Repositorie

    cd /etc/yum.repos.d/
    get http://pkgrepo.linuxtech.net/el6/release/linuxtech.repo
    yum install vlc

    Add DVD as Repositorie

    vim /etc/yum.repos.d/centos-dvd.repo
    
    [rhel-cd]
    name=CentOS $releasever - $basearch - DVD
    baseurl=file:///media/cd-rom/Client/
    enabled=1
    gpgcheck=0

    Proxy

    Enable Proxy Usage

    /etc/yum.conf
    proxy=http://proxy.domain:3128

    Specific Commands

    Install kernel 4.x

    yum --enablerepo=elrepo-kernel install kernel-ml

    Links

     

    Leave A Reply