Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ CentOS yum source as the default setting methods in DVD     - Analyzing Linux server architecture is 32-bit / 64-bit (Server)

- How to understand the difference between synchronous and asynchronous non-blocking blocking (Programming)

- Simple configuration shell scripts virtual machine environment experiment (Linux)

- C ++ two second pointer memory model (two-dimensional array) (Programming)

- The bulk batch multiple rows of data collect (Database)

- ActiveMQ5.10.2 version configuration JMX (Linux)

- Linux, modify the fstab file system can not start causing solve one case (Linux)

- Red Hat Enterprise Linux configuration VNC multi-user access methods (Linux)

- Ubuntu users install the Download Manager software Xdman 5.0 (Linux)

- Oracle database, some basic grammatical structures (Database)

- Linux Getting Started tutorial: hard disk partition and to deal with traps (Linux)

- OpenResty load balancing MySQL (Database)

- MySQL / MariaDB database master-slave replication (Database)

- Using Lua implement various operations list (Programming)

- Cancel Root Command History under Linux (Linux)

- Android working with Volley Comments (Programming)

- After SSH change the default port, how to use Git (Linux)

- Lua and C ++ (Programming)

- Use XtraBackup to MySQL database online incremental backup and recovery (Database)

- Ubuntu comes with gedit editor to add Markdown preview widget (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

will

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

change into

[C6-media]
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.
     
         
       
         
  More:      
 
- Camera-based face recognition OpenCV crawl and storage format (Python) (Linux)
- CentOS 6 / Linux su: Unable to set user ID: Resource temporarily unavailable (Linux)
- Redis configuration file interpretation (Database)
- Build Golang development environment configuration on Ubuntu 14.04 (Linux)
- Piostat - Monitoring and Statistics Linux process (Linux)
- How to achieve the MySQL Oracle table associated with the two operations update (Database)
- Use Bash script write CVS version control (Server)
- Vmstat command Linux Performance Monitoring (Linux)
- Docker startups use continuous integration deployment (Server)
- Ubuntu install VMware Workstation 11 tutorials at 14.04 / 14.10 (Linux)
- Linux Live CD lets your PC is no longer secure (Linux)
- Nginx version information hidden or modified (Server)
- Oracle 11g on Linux system boot from the startup settings (Database)
- Zabbix configure DataGuard monitoring (Database)
- To compile and install MySQL 5.7.7 RC under CentOS 7.1 (Database)
- The difference between free command displays the buffers and cache (Linux)
- Linux Mint under tty.js Installation Guide (Linux)
- Linux commands to access the cheat sheet (Linux)
- ORA-00824: can not set sga_target due to existing problem-solving (Database)
- After Ubuntu Password Forgot your way back (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.