Linux uses local Yum source and package management

Source: Internet
Author: User
Tags gpg install wordpress

[Email protected] rh]# pwd
/opt/rh
[[email protected] rh]# ls
Rhel-server-6.4-x86_64-dvd.iso


[[email protected] RH] #mkdir/mnt/cdrom


[Email protected] dev]# mount-v-t Iso9660-o loop/opt/rh/rhel-server-6.4-x86_64-dvd.iso/mnt/cdrom/
Mount:going to use the loop device/dev/loop0
/opt/rh/rhel-server-6.4-x86_64-dvd.iso on/mnt/cdrom type iso9660 (RW,LOOP=/DEV/LOOP0)

[Email protected] yum.repos.d]# vim Rhel-source.repo

[Rhel-source]
name=red Hat Enterprise Linux $releasever-$basearch-source
Baseurl=file:///mnt/cdrom
Enabled=1
Gpgcheck=0
#gpgkey =file:///etc/pki/rpm-gpg/rpm-gpg-key-redhat-release

Clear Old Cache

[email protected] cdrom]# Yum Clean all

Loaded Plugins:product-id, Refresh-packagekit, security, Subscription-manager

This system isn't registered to Red Hat Subscription Management. You can use the Subscription-manager to register.

Cleaning Repos:rhel-source

Cleaning up everything

Get Yum List

Verify that the Yum configuration is successful

[email protected] cdrom]# Yum Makecache

Loaded Plugins:product-id, Refresh-packagekit, security, Subscription-manager

This system isn't registered to Red Hat Subscription Management. You can use the Subscription-manager to register.

Rhel-source | 3.9 KB 00:00 ...

rhel-source/group_gz                                                                                                                        | 204 kb     00:00 ...

rhel-source/filelists_db                                                                                                                    | 3.7 mb     00:00 ...

rhel-source/primary_db                                                                                                                      | 3.1 mb     00:00 ...

rhel-source/other_db | 1.5 MB 00:00 ...

Metadata Cache Create

Verify that the Yum configuration is successful
[email protected] cdrom]# Yum grouplist | grep Server

Network Infrastructure Server

Print Server

Web Server

Backup Server

Directory Server

Identity Management Server

Network Storage Server

Server Platform

Server Platform Development

Systems Management Messaging Server Support

Find Packages

Yum List available #列出可供安装的软件包

Yum List installed #列出已安装的软件包

Yum List Extras #列出不是通过仓库安装的软件包

Yum List *vorbis* #列出标题包含vorbis的软件包

Yum List Updates #列出可以更新的软件包

Yum Info WordPress #wordpress软件包说明

Yum Info word* #以word开头的软件包说明

Yum Search mp3 #查找包含字符串mp3的软件包

Installing a soft Package

Yum Install WordPress

Yum Groupinstall XFCE #安装整套XFCE桌面软件包

Update package

Yum Check-update #列出所有可更新的软件包

Update for Yum list updates openoffice* #查找openoffice *

Yum Update #更新所有可更新的软件包

Remove Package

Yum Remove Beagle #删除beagle Package

Yum Remove xscreen* Remove the package beginning with Xscreen

Yum groupremove Xfce deletes all packages within a XFCE group

Clear Package

Yum Clean Packages #清除遗留在缓存里的包文件

Yum Clean metadata #清除遗留在缓存里的元数据

Yum Clean Headers #清除遗留在缓存里的头文件

Yum Clean all #清除元数据, header files and package files

RPM Install soft Sister bag

RPM-IVH rpmforge-release-*.rpm

RPM-IVH http://ftp************.rpm

RPM Upgrade Package

RPM-UHV *.rpm

Remove Package

Rpm-e Rpmforge-release

RPM-E--nodeps Rpmforge-release

Find information about RPM packages

Rpm-q rsync #版本信息

RPM-QP ***.rpm #获取当前目录下rpm包的相关信息

Rpm-qa|less #列出系统中已安装的所有软件包

Rpm-qf/etc/sysctl.conf #检查系统里某个文件以查看该文件属于哪个软件包

Rpm-qi Rpmforge-release #列出已安装软件包的标准信息信息

RPM-QLP *.rpm |less #列出rpm文件的内容

Rpm-q--scripts kernel |less #列出已安装的rpm包自带的安装前和安装后脚本

Linux uses local Yum source and package management

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.