Chinaunix首页 | 论坛 | 博客
  • 博客访问: 42487
  • 博文数量: 7
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 132
  • 用 户 组: 普通用户
  • 注册时间: 2013-07-18 14:49
个人简介

文章分类
文章存档

2013年(7)

我的朋友

分类: LINUX

2013-07-24 15:40:43

1,安装
     yum install yum-plugin-priorities    
         

2,修改/etc/yum.repos.d/CentOS-Base.repo,在 base,updates,extra,centOSplus,标签下加入 priority=1。
     在 contrib 标签加入 priority=2。

3,列出系统全部 repo 源: yum repolist all

4,如果yum损坏,重新安装,下载 rpm包:
     然后 rpm -ivh --replacepkgs yum-3.2.29-40.el6.centos.noarch.rpm

5,启动指定的repo源:   yum --enablerepo=name_of_repo _action_ packagename
    
6,安装 epel repo。在 下载rpm包。
    rpm -ivh epel-release-6-8.noarch.rpm           #安装
    yum repolist         #查看 epel 已经存在了。

7,安装 repoforge :
     下载:
     rpm -ivh rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
     yum repolist          #查看 repoforge是否启动,显示的是其老名称 rpmforge。
    

8,安装 RPM Fusion :
     下载:
     再下载:
     然后 rpm -ivh 安装
    

  • free for Open Source Software (as defined by the Fedora Licensing Guidelines) which the Fedora project cannot ship due to other reasons

  • nonfree for redistributable software that is not Open Source Software (as defined by the Fedora Licensing Guidelines); this includes software with publicly available source-code that has "no commercial use"-like restrictions

9,安装remi 源:
     下载:
      然后 rpm -ivh 安装。
      安装完成之后,缺省是 没有激活的, yum repolist all 可以看到是 disable。
      the repository is not enabled on install (enabled=0). You need to enable it when you need it, for example :
    yum --enablerepo=remi install firefox-langpack-fr

10,其他用法:
  • 搜尋套件
    • yum search KEYWORD
  • 安裝套件
    • yum install PACKAGENAME
  • 移除套件
    • yum remove PACKAGENAME
  • 列出所有目前已安裝的套件
    • yum list
  • 更新現有套件
    • yum -y update
  • 查詢特定套件的詳細說明
    • rpm -qi PACKAGENAME
  • 列出特定套件到底包含哪些檔案以及被安裝到哪些目錄下
    • rpm -ql PACKAGENAME
11,导入公钥:
       rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY
       或者其他repo的KEY。
      
12,redhat 6 配置 yum 源的两种方法
       由于 redhat的yum在线更新是收费的,如果没有注册的话不能使用,如果要使用,需将redhat的yum卸载后,重启安装,再配置其他源.
       http://space.itpub.net/25313300/viewspace-708509

13,REDHAT官方  Configuring Yum and Yum Repositories
       https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/sec-Configuring_Yum_and_Yum_Repositories.html








   
阅读(1616) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~