You are on page 1of 7

add a yum repo for centos 7.

4 update
[root@server0 yum.repos.d]# ll
總計 12
-rw-r--r--. 1 root root 200 Dec 16 19:39 centos74.repo
-rw-r--r--. 1 root root 202 Dec 16 19:33 rhel72.repo
-rw-r--r--. 1 root root 186 Jan 7 2015 rhel_dvd.repo
[root@server0 yum.repos.d]# yum-config-manager
--add-repo=http://mirror01.idc.hinet.net/CentOS/7.4.1708/updates/x86_64/
Loaded plugins: langpacks
adding repo from: http://mirror01.idc.hinet.net/CentOS/7.4.1708/updates/x86_64/

[mirror01.idc.hinet.net_CentOS_7.4.1708_updates_x86_64_]
name=added from: http://mirror01.idc.hinet.net/CentOS/7.4.1708/updates/x86_64/
baseurl=http://mirror01.idc.hinet.net/CentOS/7.4.1708/updates/x86_64/
enabled=1

[root@server0 yum.repos.d]# ll
總計 16
-rw-r--r--. 1 root root 200 Dec 16 19:39 centos74.repo
-rw-r--r--. 1 root root 218 Dec 16 20:06
mirror01.idc.hinet.net_CentOS_7.4.1708_updates_x86_64_.repo
-rw-r--r--. 1 root root 202 Dec 16 19:33 rhel72.repo
-rw-r--r--. 1 root root 186 Jan 7 2015 rhel_dvd.repo
[root@server0 yum.repos.d]# yum repolist
Loaded plugins: langpacks
mirror01.idc.hinet.net_CentOS_7.4.1708_updates_x86_64_ | 3.4 kB 00:00
mirror01.idc.hinet.net_CentOS_7.4.1708_updates_x86_64_/pri | 4.5 MB 00:01
repo id repo name status
centos74 CENTOS 74 DVD 9,591
mirror01.idc.hinet.net_CentOS_7.4.1708_updates_x86_64_ added from: http:/ 1,540
rhel72 RHEL7.2 DVD 4,620
rhel_dvd Remote classroom c 4,305
repolist: 20,056

+++++++++++++++++++++++++++++++++++++++++++++manually add yum repo for EPEL


[root@server0 yum.repos.d]# yum-config-manager
--add-repo=http://mirror01.idc.hinet.net/epel/7/x86_64/
Loaded plugins: langpacks
adding repo from: http://mirror01.idc.hinet.net/epel/7/x86_64/

[mirror01.idc.hinet.net_epel_7_x86_64_]
name=added from: http://mirror01.idc.hinet.net/epel/7/x86_64/
baseurl=http://mirror01.idc.hinet.net/epel/7/x86_64/
enabled=1

[root@server0 yum.repos.d]# rpm --import http://mirror01.idc.hinet.net/epel/RPM-


GPG-KEY-EPEL-7
[root@server0 yum.repos.d]# yum repolist
Loaded plugins: langpacks
mirror01.idc.hinet.net_epel_7_x86_64_ | 4.7 kB 00:00
(1/3): mirror01.idc.hinet.net_epel_7_x86_64_/group_gz | 266 kB 00:00
(2/3): mirror01.idc.hinet.net_epel_7_x86_64_/updateinfo | 860 kB 00:00
(3/3): mirror01.idc.hinet.net_epel_7_x86_64_/primary_db | 6.1 MB 00:01
repo id repo name status
centos74 CENTOS 74 DVD 9,591
mirror01.idc.hinet.net_CentOS_7.4.1708_updates_x86_64_ added from: http:/ 1,540
mirror01.idc.hinet.net_epel_7_x86_64_ added from: http:/ 12,136
rhel72 RHEL7.2 DVD 4,620
rhel_dvd Remote classroom c 4,305
repolist: 32,192

+++++++++++++++++++++++add NTFS driver and utilities


[root@server0 yum.repos.d]# yum search ntfs
Loaded plugins: langpacks
============================== N/S matched: ntfs ===============================
ntfs-3g.x86_64 : Linux NTFS userspace driver
ntfs-3g-devel.x86_64 : Development files and libraries for ntfs-3g
ntfsprogs.x86_64 : NTFS filesystem libraries and utilities

Name and summary matches only, use "search all" for everything.
[root@server0 yum.repos.d]# yum install ntfs-3g ntfsprogs
Loaded plugins: langpacks
Resolving Dependencies
--> Running transaction check
---> Package ntfs-3g.x86_64 2:2017.3.23-1.el7 will be installed
---> Package ntfsprogs.x86_64 2:2017.3.23-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
ntfs-3g x86_64 2:2017.3.23-1.el7 mirror01.idc.hinet.net_epel_7_x86_64_ 263 k
ntfsprogs x86_64 2:2017.3.23-1.el7 mirror01.idc.hinet.net_epel_7_x86_64_ 363 k

Transaction Summary
================================================================================
Install 2 Packages

Total download size: 626 k


Installed size: 1.7 M
Is this ok [y/d/N]: y
Downloading packages:
(1/2): ntfs-3g-2017.3.23-1.el7.x86_64.rpm | 263 kB 00:00
(2/2): ntfsprogs-2017.3.23-1.el7.x86_64.rpm | 363 kB 00:00
--------------------------------------------------------------------------------
Total 1.7 MB/s | 626 kB 00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : 2:ntfs-3g-2017.3.23-1.el7.x86_64 1/2
Installing : 2:ntfsprogs-2017.3.23-1.el7.x86_64 2/2
Verifying : 2:ntfs-3g-2017.3.23-1.el7.x86_64 1/2
Verifying : 2:ntfsprogs-2017.3.23-1.el7.x86_64 2/2

Installed:
ntfs-3g.x86_64 2:2017.3.23-1.el7 ntfsprogs.x86_64 2:2017.3.23-1.el7

Complete!

*****************************
setup multimedia codec for CENTOS7
https://wiki.centos.org/zh-tw/TipsAndTricks/MultimediaOnCentOS7
[root@server0 yum.repos.d]# rpm -Uvh
http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-
5.el7.nux.noarch.rpm
正在擷取 http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-
5.el7.nux.noarch.rpm
警告:/var/tmp/rpm-tmp.2o6bYf: 表頭 V4 RSA/SHA1 Signature, key ID 85c6cd8a: NOKEY
錯誤:相依關係失敗:
epel-release 被 nux-dextop-release-0-5.el7.nux.noarch 需要
[root@server0 yum.repos.d]# ll
總計 20
-rw-r--r--. 1 root root 200 Dec 16 19:39 centos74.repo
-rw-r--r--. 1 root root 218 Dec 16 20:06
mirror01.idc.hinet.net_CentOS_7.4.1708_updates_x86_64_.repo
-rw-r--r--. 1 root root 167 Dec 16 20:11 mirror01.idc.hinet.net_epel_7_x86_64_.repo
-rw-r--r--. 1 root root 202 Dec 16 19:33 rhel72.repo
-rw-r--r--. 1 root root 186 Jan 7 2015 rhel_dvd.repo
[root@server0 yum.repos.d]# rm mirror01.idc.hinet.net_epel_7_x86_64_.repo
rm:是否移除普通檔案‘mirror01.idc.hinet.net_epel_7_x86_64_.repo’? y
[root@server0 yum.repos.d]# yum install http://mirror01.idc.hinet.net/epel/epel-
release-latest-7.noarch.rpm
Loaded plugins: langpacks
epel-release-latest-7.noarch.rpm | 15 kB 00:00
Examining /var/tmp/yum-root-rKJXAU/epel-release-latest-7.noarch.rpm: epel-release-
7-11.noarch
Marking /var/tmp/yum-root-rKJXAU/epel-release-latest-7.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-11 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
epel-release noarch 7-11 /epel-release-latest-7.noarch 24 k

Transaction Summary
================================================================================
Install 1 Package

Total size: 24 k
Installed size: 24 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : epel-release-7-11.noarch 1/1
Verifying : epel-release-7-11.noarch 1/1

Installed:
epel-release.noarch 0:7-11

Complete!
[root@server0 yum.repos.d]# rpm -Uvh
http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-
5.el7.nux.noarch.rpm
正在擷取 http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-
5.el7.nux.noarch.rpm
警告:/var/tmp/rpm-tmp.7e5tad: 表頭 V4 RSA/SHA1 Signature, key ID 85c6cd8a: NOKEY
正在準備… ################################# [100%]
Updating / installing...
1:nux-dextop-release-0-5.el7.nux ################################# [100%]
[root@server0 yum.repos.d]# yum repolist
Loaded plugins: langpacks
epel/x86_64/metalink | 8.3 kB 00:00
epel | 4.7 kB 00:00
http://mirror01.idc.hinet.net/EPEL/7/x86_64/repodata/repomd.xml: [Errno -1]
repomd.xml does not match metalink for epel
Trying other mirror.
epel | 4.7 kB 00:00
nux-dextop | 2.9 kB 00:00
(1/4): epel/x86_64/group_gz | 266 kB 00:00
(2/4): epel/x86_64/updateinfo | 857 kB 00:01
(3/4): nux-dextop/x86_64/primary_db | 1.7 MB 00:01
(4/4): epel/x86_64/primary_db | 6.1 MB 00:22
repo id repo name status
centos74 CENTOS 74 DVD 9,591
epel/x86_64 Extra Packages for 12,136
mirror01.idc.hinet.net_CentOS_7.4.1708_updates_x86_64_ added from: http:/ 1,540
nux-dextop/x86_64 Nux.Ro RPMs for ge 2,566
rhel72 RHEL7.2 DVD 4,620
rhel_dvd Remote classroom c 4,305
repolist: 34,758

[root@server0 yum.repos.d]# yum install icedtea-web


Loaded plugins: langpacks
Resolving Dependencies
--> Running transaction check
---> Package icedtea-web.x86_64 0:1.4.2-1.el7 will be updated
---> Package icedtea-web.x86_64 0:1.6.2-4.el7 will be an update
--> Processing Dependency: chkconfig >= 1.7 for package: icedtea-web-1.6.2-
4.el7.x86_64
--> Processing Dependency: chkconfig >= 1.7 for package: icedtea-web-1.6.2-
4.el7.x86_64
--> Processing Dependency: tagsoup for package: icedtea-web-1.6.2-4.el7.x86_64
--> Processing Dependency: java-1.8.0-openjdk for package: icedtea-web-1.6.2-
4.el7.x86_64
--> Running transaction check
---> Package chkconfig.x86_64 0:1.3.61-4.el7 will be updated
--> Processing Dependency: chkconfig = 1.3.61-4.el7 for package: ntsysv-1.3.61-
4.el7.x86_64
---> Package chkconfig.x86_64 0:1.7.4-1.el7 will be an update
---> Package java-1.8.0-openjdk.x86_64 1:1.8.0.151-1.b12.el7_4 will be installed
--> Processing Dependency: java-1.8.0-openjdk-headless(x86-64) = 1:1.8.0.151-
1.b12.el7_4 for package: 1:java-1.8.0-openjdk-1.8.0.151-1.b12.el7_4.x86_64
---> Package tagsoup.noarch 0:1.2.1-8.el7 will be installed
--> Running transaction check
---> Package java-1.8.0-openjdk-headless.x86_64 1:1.8.0.151-1.b12.el7_4 will be
installed
--> Processing Dependency: tzdata-java >= 2015d for package: 1:java-1.8.0-openjdk-
headless-1.8.0.151-1.b12.el7_4.x86_64
--> Processing Dependency: copy-jdk-configs >= 2.2 for package: 1:java-1.8.0-
openjdk-headless-1.8.0.151-1.b12.el7_4.x86_64
--> Processing Dependency: lksctp-tools(x86-64) for package: 1:java-1.8.0-openjdk-
headless-1.8.0.151-1.b12.el7_4.x86_64
---> Package ntsysv.x86_64 0:1.3.61-4.el7 will be updated
---> Package ntsysv.x86_64 0:1.7.4-1.el7 will be an update
--> Running transaction check
---> Package copy-jdk-configs.noarch 0:2.2-5.el7_4 will be installed
---> Package lksctp-tools.x86_64 0:1.0.17-2.el7 will be installed
---> Package tzdata-java.noarch 0:2014b-1.el7 will be updated
---> Package tzdata-java.noarch 0:2017c-1.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Updating:
icedtea-web x86_64 1.6.2-4.el7 centos74 1.6 M
Installing for dependencies:
copy-jdk-configs noarch 2.2-5.el7_4
mirror01.idc.hinet.net_CentOS_7.4.1708_updates_x86_64_
19 k
java-1.8.0-openjdk x86_64 1:1.8.0.151-1.b12.el7_4
mirror01.idc.hinet.net_CentOS_7.4.1708_updates_x86_64_
241 k
java-1.8.0-openjdk-headless x86_64 1:1.8.0.151-1.b12.el7_4
mirror01.idc.hinet.net_CentOS_7.4.1708_updates_x86_64_
32 M
lksctp-tools x86_64 1.0.17-2.el7 centos74 88 k
tagsoup noarch 1.2.1-8.el7 centos74 112 k
Updating for dependencies:
chkconfig x86_64 1.7.4-1.el7 centos74 181 k
ntsysv x86_64 1.7.4-1.el7 centos74 38 k
tzdata-java noarch 2017c-1.el7
mirror01.idc.hinet.net_CentOS_7.4.1708_updates_x86_64_
183 k

Transaction Summary
================================================================================
Install ( 5 Dependent packages)
Upgrade 1 Package (+3 Dependent packages)

Total download size: 34 M


Is this ok [y/d/N]: y
Downloading packages:
No Presto metadata available for centos74
(1/9): chkconfig-1.7.4-1.el7.x86_64.rpm | 181 kB 00:00
(2/9): copy-jdk-configs-2.2-5.el7_4.noarch.rpm | 19 kB 00:00
(3/9): lksctp-tools-1.0.17-2.el7.x86_64.rpm | 88 kB 00:00
(4/9): java-1.8.0-openjdk-1.8.0.151-1.b12.el7_4.x86_64.rpm | 241 kB 00:00
(5/9): ntsysv-1.7.4-1.el7.x86_64.rpm | 38 kB 00:00
(6/9): tagsoup-1.2.1-8.el7.noarch.rpm | 112 kB 00:00
(7/9): tzdata-java-2017c-1.el7.noarch.rpm | 183 kB 00:00
(8/9): icedtea-web-1.6.2-4.el7.x86_64.rpm | 1.6 MB 00:01
(9/9): java-1.8.0-openjdk-headless-1.8.0.151-1.b12.el7_4.x | 32 MB 00:04
--------------------------------------------------------------------------------
Total 7.2 MB/s | 34 MB 00:04
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Updating : chkconfig-1.7.4-1.el7.x86_64 1/13
Installing : lksctp-tools-1.0.17-2.el7.x86_64 2/13
Updating : tzdata-java-2017c-1.el7.noarch 3/13
Installing : tagsoup-1.2.1-8.el7.noarch 4/13
Installing : copy-jdk-configs-2.2-5.el7_4.noarch 5/13
Installing : 1:java-1.8.0-openjdk-headless-1.8.0.151-1.b12.el7_4.x86_ 6/13
Installing : 1:java-1.8.0-openjdk-1.8.0.151-1.b12.el7_4.x86_64 7/13
Updating : icedtea-web-1.6.2-4.el7.x86_64 8/13
Updating : ntsysv-1.7.4-1.el7.x86_64 9/13
Cleanup : ntsysv-1.3.61-4.el7.x86_64 10/13
Cleanup : icedtea-web-1.4.2-1.el7.x86_64 11/13
Cleanup : tzdata-java-2014b-1.el7.noarch 12/13
Cleanup : chkconfig-1.3.61-4.el7.x86_64 13/13
Verifying : 1:java-1.8.0-openjdk-headless-1.8.0.151-1.b12.el7_4.x86_ 1/13
Verifying : copy-jdk-configs-2.2-5.el7_4.noarch 2/13
Verifying : tagsoup-1.2.1-8.el7.noarch 3/13
Verifying : 1:java-1.8.0-openjdk-1.8.0.151-1.b12.el7_4.x86_64 4/13
Verifying : icedtea-web-1.6.2-4.el7.x86_64 5/13
Verifying : chkconfig-1.7.4-1.el7.x86_64 6/13
Verifying : ntsysv-1.7.4-1.el7.x86_64 7/13
Verifying : tzdata-java-2017c-1.el7.noarch 8/13
Verifying : lksctp-tools-1.0.17-2.el7.x86_64 9/13
Verifying : ntsysv-1.3.61-4.el7.x86_64 10/13
Verifying : chkconfig-1.3.61-4.el7.x86_64 11/13
Verifying : icedtea-web-1.4.2-1.el7.x86_64 12/13
Verifying : tzdata-java-2014b-1.el7.noarch 13/13

Dependency Installed:
copy-jdk-configs.noarch 0:2.2-5.el7_4
java-1.8.0-openjdk.x86_64 1:1.8.0.151-1.b12.el7_4
java-1.8.0-openjdk-headless.x86_64 1:1.8.0.151-1.b12.el7_4
lksctp-tools.x86_64 0:1.0.17-2.el7
tagsoup.noarch 0:1.2.1-8.el7

Updated:
icedtea-web.x86_64 0:1.6.2-4.el7

Dependency Updated:
chkconfig.x86_64 0:1.7.4-1.el7 ntsysv.x86_64 0:1.7.4-1.el7
tzdata-java.noarch 0:2017c-1.el7

Complete!

[root@server0 yum.repos.d]# yum install vlc smplayer ffmpeg HandBrake-{gui,cli}


Loaded plugins: langpacks
Resolving Dependencies

[root@server0 yum.repos.d]# yum install libdvdcss gstreamer{,1}-plugins-ugly


gstreamer-plugins-bad-nonfree gstreamer1-plugins-bad-freeworld

You might also like