国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費(fèi)電子書(shū)等14項(xiàng)超值服

開(kāi)通VIP
CentOS 7添加yum源

RedHat下主要有兩個(gè)distribution,一曰  一曰 .前者主要是供服務(wù)器使用,優(yōu)點(diǎn)是穩(wěn)定,缺點(diǎn)是老的掉牙,后者是供桌面使用的,優(yōu)點(diǎn)是特別新,repo的速度幾乎可以和媲美,缺點(diǎn)是發(fā)布兩年EOL()就到了,我見(jiàn)過(guò)某服務(wù)器從不關(guān)機(jī),也不更新,一直縫縫補(bǔ)補(bǔ)開(kāi)了數(shù)年的,用fedora簡(jiǎn)直是作死.

但若不是財(cái)大氣粗(比如某有數(shù)千臺(tái)曙光各種RHEL的xx中心,讓人羨慕的流口水),很多服務(wù)器選擇作為服務(wù)器的OS,因?yàn)榛贕PL License的RHEL是提供binary file 和 source code 的,有社區(qū)將source code 再編譯為 binary file ,取名為CentOS,所謂社區(qū)操作系統(tǒng)..因此,CentOS基本可以認(rèn)為是RHEL的免費(fèi)版本,據(jù)傳性能還是有點(diǎn)差距并且不提供官方技術(shù)支持.若在服務(wù)器使用,它也足以讓服務(wù)器免去很多維護(hù)了.

今年的7月份,,對(duì)應(yīng)于Red Hat在6月發(fā)布的,.更重要的是,這位同志終于愿意從2.6.x的kernel升到3.x了,要知道,截止目前,kernel早已升級(jí)到3.15.8了,這得落后多少年了啊,對(duì)應(yīng)的gcc也從4.4.7升級(jí)到了4.8.x,終于可以在服務(wù)器上編譯帶--std=c++11參數(shù)的代碼而不必自己編譯個(gè)編譯器先了淚目.

總之,很高興的直接裝了個(gè)新的CentOS 7,然后習(xí)慣的去找的源,然后悲劇的發(fā)現(xiàn)居然目前還沒(méi)有提供...額,沒(méi)有只有基礎(chǔ)倉(cāng)庫(kù)的CentOS 7那得多不方便啊囧,只能找一些其它的源來(lái)應(yīng)付下先.

找了下,和我找到一些相關(guān)內(nèi)容,照著做了下,我最需要的幾個(gè)東西都可以找到.


RHEL 官方擴(kuò)展源

  首先我們可以使用下RHEL的官方源.命令很簡(jiǎn)單

# yum localinstall  -y

  若發(fā)現(xiàn)它報(bào)個(gè)404之類(lèi)的,去 找找看 epel-release 開(kāi)頭的rpm package,或許有更新,總之裝個(gè)epel-release*.rpm后,看/etc/yum.repos.d/文件夾下就多了兩個(gè)文件如下:

-rw-r--r-- 1 root root  957 Jun 19 07:20 epel.repo
-rw-r--r-- 1 root root 1056 Jun 19 07:20 epel-testing.repo

  你若沒(méi)有特別的需求,你應(yīng)該只要有epel.repo就可以.

  epel.repo

[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
#baseurl=http://
mirrorlist=https://;amp;amp;arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
[epel-debuginfo]
name=Extra Packages for Enterprise Linux 7 - $basearch - Debug
#baseurl=http://
mirrorlist=https://;amp;amp;arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1
[epel-source]
name=Extra Packages for Enterprise Linux 7 - $basearch - Source
#baseurl=http://
mirrorlist=https://;amp;amp;arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1

  你也可以直接把上面那些內(nèi)容寫(xiě)到/etc/yum.repos.d/epel.repo文件中.
  然后:# yum makecache  這樣就可以用了。

  嘗試是否成功也很容易

# yum repolist
......
repo id      repo name                                       status
epel/x86_64  Extra Packages for Enterprise Linux 7 - x86_64  5,425
......

  發(fā)現(xiàn)有高亮一欄就算過(guò)了.


remi源

  安裝和RHEL差不多,這個(gè)源主要是提供了一些php相關(guān)的擴(kuò)展庫(kù),若不使用php,意義感覺(jué)不算大.

# yum localinstall http://

  同樣可以在/etc/yum.repos.d/中看到多了個(gè)remi.repo
  編輯可以看到內(nèi)容如下:

[remi]
name=Les RPM de remi pour Enterprise Linux 7 - $basearch
#baseurl=http://
mirrorlist=http://
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
[remi-php55]
name=Les RPM de remi de PHP 5.5 pour Enterprise Linux 7 - $basearch
#baseurl=http://
mirrorlist=http://
# WARNING: If you enable this repository, you must also enable "remi"
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
[remi-php56]
name=Les RPM de remi de PHP 5.6 pour Enterprise Linux 7 - $basearch
#baseurl=http://
mirrorlist=http://
# WARNING: If you enable this repository, you must also enable "remi"
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
[remi-test]
name=Les RPM de remi en test pour Enterprise Linux 7 - $basearch
#baseurl=http://
mirrorlist=http://
# WARNING: If you enable this repository, you must also enable "remi"
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
[remi-debuginfo]
name=Les RPM de remi pour Enterprise Linux 7 - $basearch - debuginfo
baseurl=http://
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
[remi-php55-debuginfo]
name=Les RPM de remi de PHP 5.5 pour Enterprise Linux 7 - $basearch - debuginfo
baseurl=http://
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
[remi-php56-debuginfo]
name=Les RPM de remi de PHP 5.6 pour Enterprise Linux 7 - $basearch - debuginfo
baseurl=http://
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
[remi-test-debuginfo]
name=Les RPM de remi en test pour Enterprise Linux 7 - $basearch - debuginfo
baseurl=http://
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi

  默認(rèn)enable全是0,根據(jù)需要自行將enable改為1,注意高亮的第五行enable必須改為1 remi才能用.

  然后makecache 測(cè)試什么的就和RHEL一樣不細(xì)說(shuō)了.


puias源

       是基于RH的一個(gè)擴(kuò)展distribution和mirror。無(wú)論是CentOS 5,6還是7都可以得到它的一些擴(kuò)展的程序。尤其是科學(xué)計(jì)算領(lǐng)域的一些模塊,果斷是要入手的。目前它由普林斯頓高能所維護(hù)。
  你去它的官網(wǎng)可以得到很多說(shuō)明。比如
  我們可以只選擇計(jì)算的部分如下:

  puias-computational.repo

[PUIAS_computational]
name=PUIAS computational Base $releasever - $basearch
mirrorlist=http://
#baseurl=http://
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puias

  /etc/yum.repo.d/下建立文件,保存即可。

  因?yàn)槲覀冞@次沒(méi)有使用rpm包,所以需要import一下GPG KEY.

rpm --import http://

RepoForge源

   原名RPMForge,是一個(gè)維護(hù)得很不錯(cuò)的repo站點(diǎn).點(diǎn)擊可以看到RHEL各版本的下載鏈接.拿到鏈接后

yum localinstall xxx.rpm -y

  即可完成安裝。
  目前為止似乎還沒(méi)有把centos 7加上,但是沒(méi)關(guān)系,隨便找個(gè)6的鏈接,把6變成7即可獲得該rpm包的大致位置。當(dāng)前我得到的位置是 :
  進(jìn)入后找到rpmforge-release-**的文件,獲得下載鏈接,安裝即可。

yum localinstall http:// -y
yum makecache

CentOS 7添加yum源

本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶(hù)發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)。
打開(kāi)APP,閱讀全文并永久保存 查看更多類(lèi)似文章
猜你喜歡
類(lèi)似文章
RHEL/CentOS 6.x使用EPEL6與remi的yum源安裝MySQL 5.5.x
在CentOS 6.5上安裝RHEL EPEL Repo
CentOS系統(tǒng)更換yum源(repomd.xml not found解決方案)
CentOS6的yum源失效官方停止維護(hù)更新及解決
搭建私有YUM倉(cāng)庫(kù)與內(nèi)網(wǎng)鏡像站
centos6更換yum源
更多類(lèi)似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服