2014-09-24 23:09:41 +08:00
|
|
|
|
Linux有问必答:如何在CentOS或者RHEL上启用Nux Dextop仓库
|
2014-09-08 12:17:47 +08:00
|
|
|
|
================================================================================
|
|
|
|
|
> **问题**: 我想要安装一个在Nux Dextop仓库的RPM包。我该如何在CentOS或者RHEL上设置Nux Dextop仓库?
|
|
|
|
|
|
|
|
|
|
[Nux Dextop][1]是一个面对CentOS、RHEL、ScientificLinux的含有许多流行的桌面和多媒体相关的包的第三方RPM仓库(比如:Ardour,Shutter等等)。目前,Nux Dextop桌面对CentOS和RHEL 6/7可用。
|
|
|
|
|
|
|
|
|
|
要在CentOS或者RHEL上启用Nux Dextop,遵循下面的步骤。
|
|
|
|
|
|
2014-09-24 23:09:41 +08:00
|
|
|
|
首先,要知道Nux Dextop被设计与EPEL仓库共存。因此,你需要在使用Nux Dexyop仓库前先[启用 EPEL][2]。
|
2014-09-08 12:17:47 +08:00
|
|
|
|
|
|
|
|
|
启用EPEL后,用下面的命令安装Nux Dextop仓库。
|
|
|
|
|
|
|
|
|
|
在 CentOS/RHEL 6.* 上:
|
|
|
|
|
|
|
|
|
|
$ sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el6/x86_64/nux-dextop-release-0-2.el6.nux.noarch.rpm
|
|
|
|
|
|
|
|
|
|
在 CentOS/RHEL 7 上 :
|
|
|
|
|
|
|
|
|
|
$ sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
|
|
|
|
|
|
|
|
|
|
现在验证Nux Dextop仓库是否已经成功安装:
|
|
|
|
|
|
|
|
|
|
$ yum repolist
|
|
|
|
|
|
|
|
|
|
![](https://farm6.staticflickr.com/5574/14790031847_90b4a829d7_z.jpg)
|
|
|
|
|
|
|
|
|
|
### 对于 Repoforge/RPMforge 用户 ###
|
|
|
|
|
|
2014-09-24 23:09:41 +08:00
|
|
|
|
据作者所说,目前已知Nux Dextop会与其他第三方库比如Repoforge和ATrpms相冲突。因此,如果你启用了除了EPEL的其他第三方库,强烈建议你将Nux Dextop仓库设置成“default off”(默认关闭)状态。就是用文本编辑器打开/etc/yum.repos.d/nux-dextop.repo,并且在nux-desktop下面将"enabled=1" 改成 "enabled=0"。
|
2014-09-08 12:17:47 +08:00
|
|
|
|
|
2014-09-24 23:09:41 +08:00
|
|
|
|
$ sudo vi /etc/yum.repos.d/nux-dextop.repo
|
2014-09-08 12:17:47 +08:00
|
|
|
|
|
|
|
|
|
![](https://farm6.staticflickr.com/5560/14789955930_f8711b3581_z.jpg)
|
|
|
|
|
|
2014-09-24 23:09:41 +08:00
|
|
|
|
无论何时当你从Nux Dextop仓库安装包时,显式地用下面的命令启用仓库。
|
2014-09-08 12:17:47 +08:00
|
|
|
|
|
|
|
|
|
$ sudo yum --enablerepo=nux-dextop install <package-name>
|
|
|
|
|
|
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
via: http://ask.xmodulo.com/enable-nux-dextop-repository-centos-rhel.html
|
|
|
|
|
|
|
|
|
|
译者:[geekpi](https://github.com/geekpi)
|
2014-09-24 23:09:41 +08:00
|
|
|
|
校对:[ wxy](https://github.com/wxy)
|
2014-09-08 12:17:47 +08:00
|
|
|
|
|
|
|
|
|
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
|
|
|
|
|
|
|
|
|
[1]:http://li.nux.ro/download/nux/dextop/
|
|
|
|
|
[2]:http://xmodulo.com/2013/03/how-to-set-up-epel-repository-on-centos.html
|