Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ CentOS yum source as the default setting methods in DVD     - Ubuntu 10.10 install Oracle 10g graphic tutorials (Database)

- Common Linux System Troubleshooting (Linux)

- Object Oriented Programming Java reflection (Programming)

- Asynchronous JavaScript loading (Programming)

- Android Studio Personalization (Linux)

- Ubuntu Telnet service settings (Linux)

- GCC and gfortran write MEX program (Matlab2012a) under Ubuntu 14.04 (Programming)

- 3 ways to create a lightweight, durable system of Ubuntu Linux USB disk (Linux)

- Ubuntu 14.04 installed NVIDIA graphics driver (Linux)

- There are three ways to run a Linux operating system from a USB stick (Linux)

- Cryptography development environment to build under Ubuntu (Linux)

- Use SocketServer write a sockets program (Programming)

- Briefly explain the invasion of the four-level denial of service attack DoS Linux server (Linux)

- File permissions under Linux (Linux)

- Formatting Java floating-point types (Programming)

- SYN attack hacker attack and defense of the basic principles and prevention technology (Linux)

- Ubuntu 14.04 installation and configuration environment variable JDK1.8.0_25 (Linux)

- Linux Learning --- disk partition / relational representation + mount (Linux)

- grep command output highlighted word (Linux)

- Linux firewall iptables beginner tutorial (Linux)

  CentOS yum source as the default setting methods in DVD
  Add Date : 2018-11-21      
  Yum is the default network installation, in the absence of network speed or poor circumstances, to install the software via yum opinion is very painful, in fact, for CentOS DVD, the software which provides enough to satisfy our needed, and the DVD version of the software is stable version, faster download speeds, learning CentOS, the DVD will be the default CentOS yum source can greatly improve the efficiency of learning.

1, DVD to create a directory to mount

[Root @ localhost ~] # mkdir / media / CentOS

2, mount CentOS DVD under Linux (virtual machine mount DVD did not say, should be able)

[Root @ localhost ~] # mount -t auto / dev / cdrom / media / CentOS

3, view the configuration file, directory

[Root @ localhost ~] # ls -l /etc/yum.repos.d/
-rw-r -. r-- 1 root root 1926. 7 Yue 3 10:15 CentOS-Base.repo
-rw-r -. r-- 1 root root 637. 7 Yue 3 10:15 CentOS-Debuginfo.repo
-rw-r -. r-- 1 root root 626. 7 Yue 3 10:15 CentOS-Media.repo

4, disabling yum network update mode, simply default choice for CentOS-Base.repo renamed to CentOS-Base.repo.bak

[Root @ localhost yum.repos.d] # mv CentOS-Base.repo CentOS-Base.repo.bak

5, configure the local yum source

[Root @ localhost ~] # vim /etc/yum.repos.d/CentOS-Media.repo


name = CentOS- $ releasever - Media
baseurl = file: /// media / CentOS /
file: /// media / cdrom /
file: /// media / cdrecorder /
gpgcheck = 1
enabled = 0

change into

name = CentOS- $ releasever - Media
baseurl = file: /// media / CentOS /
gpgcheck = 1
enabled = 1

Wherein baseurl modify the DVD mount directory, enabled = 1 enable local update mode

: Wq to save and exit

6, clear the existing yum information

[Root @ localhost ~] # yum clean all
Loaded plugins: fastestmirror
Cleaning up Everything

7, check the DVD software list

[Root @ localhost yum.repos.d] # yum list
Loaded plugins: fastestmirror
Determining fastest mirrors
c6-media | 3.7 kB 00:00 ...
c6-media / primary_db | 3.3 MB 00:00 ...

So later on DVD to install the software using the default, if you want to restore the network installation mode, the CentOS-Base.repo.bak reduction can be renamed.

PS. After each reboot the system need to manually mount the DVD to / media / CentOS /, if you can be bothered to write your own script to automatically mount.
- Linux Log (Linux)
- C language to view various types of data size (Programming)
- Linux System Getting Started Tutorial: How to automatically set the JAVA_HOME environment variable on Linux (Linux)
- Memcache explain in detail (Server)
- List Leaves (Programming)
- Linux OOM killer mechanism (Linux)
- C ++ Supplements - Smart Pointers (Programming)
- To configure linux transparent firewall (Linux)
- MongoDB version 3.2 WiredTiger storage engine performance tests (Database)
- Linux directory structure (Linux)
- Depth understanding of Python character set encoding (Programming)
- Linux User Management (Linux)
- How to handle special characters in JSON (Programming)
- command-line tool for send e-mail (Linux)
- Oracle Duplicate build DataGuard (Database)
- CentOS 6.6 source compiler GCC upgrade to 4.8.2 (Linux)
- Linux operating system set up to effectively prevent ARP attacks (Linux)
- The difference between Linux su and sudo commands (Linux)
- How to create a new file system / partitions under Linux terminal (Linux)
- Linux shell scripts bubble sort (Programming)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.