Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ CentOS yum configuration under local sources     - How do I delete a NEEDS RECOVERY rollback state of undo tablespace (Database)

- Sublime Text 3 using summary (Linux)

- Compile and install GCC 4.8.1 + GDB 7.6.1 + Eclipse in CentOS 6.4 in (Linux)

- Ubuntu disable graphics card (Linux)

- To install the Ubuntu Touch emulator on Ubuntu (Linux)

- Git version rollback (Linux)

- CentOS / Linux restart active NIC connection paths / network configure error Error Resolution (Linux)

- How to achieve the MySQL Oracle table associated with the two operations update (Database)

- Java implementation chain store binary tree (Programming)

- Ubuntu buffalo wzr-hp-300nh brush DD-WRT router system (Linux)

- How ONLYOFFICE collaborative editing document on Linux (Linux)

- How screenshots from the Linux command line (Linux)

- TypeScript basic grammar (Programming)

- Ubuntu 14.04 modify environment variables (Linux)

- How to Check notebook CPU temperature in Ubuntu (Linux)

- Linux System Getting Started Learning: Using the Linux command line detected DVD burner name and write speeds (Linux)

- Ubuntu install perfectly handsome terminal Guake 0.8.1 (Linux)

- DRBD daily management (Server)

- Install OpenGL development environment in Fedora and Ubuntu (Linux)

- Ten minutes to find out the character set and character encoding (Linux)

 
         
  CentOS yum configuration under local sources
     
  Add Date : 2018-11-21      
         
         
         
  Off the net, and no way want to download something, then play the next yum configuration local sources. In fact, it would not, the Internet search, summed up the following two ways:

A. Install the software by CentOS DVD, CD software, which provides enough to satisfy our need for it, and the DVD version of the software is stable version, faster download speeds, learning CentOS, the DVD will CentOS yum source can be used as the default greatly improve learning efficiency.

I was CentOS
 6.4 using a virtual machine, the virtual machine to load CD method: VM -> Removable Devices -> CD / DVD-> Settings, choose a good CD.

Start down the steps:

1. [root @ localhost
 ~] # Mkdir / media / CentOS // Create a directory to mount the CD-ROM

2. [root @ localhost
 ~] #mount / Dev / cdrom / mnt / centos // mount

3. [root @ localhost
 yum.repos.d] # mv CentOS-Base.repo CentOS-Base.repo.bak // use yum network update mode, simply default choice for CentOS-Base.repo renamed CentOS-Base.repo.bak i.e. can

4. [root @ localhost
 ~] # Vim /etc/yum.repos.d/CentOS-Media.repo // Configure the local source

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. [root @ localhost
 ~] # Yum clean all // clear the existing yum information

7. [root @ localhost
 yum.repos.d] # yum list // Check the list of DVD software

So later on DVD to install the software using the default, if you want to restore the network installation mode,
 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.

Two. 1. [root @ localhost ~] # mkdir yumload // create folders stored rpm package

2.
 [Root @ localhost ~] # cp / media / CentOS / Packages / yumload / // copy past

3.
Then create a local repo use createrepo instruction, CentOS6 createrepo not installed by default, you need to manually install, it does not matter, in our DVD disc has integrated createrepo packet, if packets need to rely on other installation packages, and then click install.

[Root @ localhost
 Packages] # rpm -ivh createrepo-0.9.9-17.el6.noarch.rpm

error:
 Failed dependencies:
python-deltarpm is needed by createrepo-0.9.9-17.el6.noarch // This message may appear, do not worry

[Root @ localhost
 Packages] # rpm -ivh python-deltarpm-3.5-0.5.20090913git.el6.i686.rpm


error:
 Failed dependencies:
deltarpm = 3.5-0.5.20090913git.el6 is needed by python-deltarpm-3.5-0.5.20090913git.el6.i686

[Root @ localhost
 Packages] # rpm -ivh deltarpm-3.5-0.5.20090913git.el6.i686.rpm // find a step by step its dependencies

Preparing ...
                ########################################### [100%]
  1: deltarpm ########################################### [100%]

[Root @ localhost
 Packages] # rpm -ivh python-deltarpm-3.5-0.5.20090913git.el6.i686.rpm
Preparing ... ########################################### [100% ]
    1: python-deltarpm ########################################### [100 %]

[Root @ localhost
 Packages] # rpm -ivh createrepo-0.9.9-17.el6.noarch.rpm

Preparing ...
                ########################################### [100%]
    1: createrepo ########################################### [100%]

It will depend on the package complete. .

4. [root @ localhost ~] # createrepo yumload / # yum repository is created, patience

Spawning
 worker 0 with 3114 pkgs
Workers Finished
Gathering worker results


Saving Primary metadata
Saving file lists metadata
Saving other metadata
Generating sqlite DBs
Sqlite DBs complete

5 .. /etc/yum.repo.d/ created under a repo file, the file name can be customized, but must end with repo and add about content:


[Linuxidc.org] # warehouse name can be customized
name = This is a local repo # description
baseurl = file: /// yumload / # here to fill warehouses url, note that there are three forward slashes
enabled = 1 # if the open warehouse, 1 is on, 0 is off
gpgcheck = 0 # Check whether gpgkey, 1 is on, 0 is off

6. local yum source here has been set up is completed, the next re-initialization yum cache:
[Root @ linuxidc repodata] # yum clean all

7. Test group information is correct can add the following code, as long as the output information on that success
[Root @ linuxidc ~] # yum grouplist
     
         
         
         
  More:      
 
- How to use the internal network IP forwarding to connect to the Internet on Linux (Linux)
- Linux - Common process the command (Linux)
- Calculate CPU utilization (Linux)
- Elaborate .NET Multithreading: Concepts (Programming)
- Install the latest Eclipse IDE in Ubuntu (Linux)
- Linux Systems Getting Started Learning: Configuration PCI passthrough on a virtual machine (Linux)
- Use nice, cpulimit and cgroups limit cpu usage (Linux)
- Linux operating system security management skills notes (Linux)
- KVM QEMU virtual machine installation configuration under CentOS (Linux)
- Fedora 20 installation source Xen4.3.0 (Linux)
- Ubuntu 14.10 splash screen brightness settings (Linux)
- To upgrade combat MongoDB database replication sets and split versions (Database)
- How to fix Not Enough Free Disk Space On / boot on Ubuntu (Linux)
- Vim highlight lookup operation (Linux)
- Setting Lns firewall against ARP attacks (Linux)
- Zabbix Agent (Server)
- Oracle 11g maintenance partitions - Adding Partitions (Database)
- The OpenGL ES GLFW window structures (Programming)
- Installation of Theano + CUDA under Ubuntu (Linux)
- Let MySQL 5.6 support Emoji expression (Database)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.