Today, when I got a test environment, I lost some packages. When I installed the RPM package, the dependency was very troublesome. So I thought of using a CD to build a local Yum server. Here are the specific setup steps. Using Yum can help solve the dependency problem.
I have also compiled an article, which uses the FTP format:
Build a yum server in Linux
Http://blog.csdn.net/tianlesoftware/article/details/6113902
The steps are also simple, as shown below:
1. Create a media loading directory
Mkdir/Media/Disk
2. Insert a system Disc
Generally, all the required RPM packages are available on the system disk. Therefore, you can directly obtain the RPM packages from the System Disk instead of downloading them from the Internet.
3. Mount the media to the directory we created earlier.
Mount/dev/CDROM/Media/Disk
4. Create a yum configuration file
[Root @ rac2/] # Touch/etc/yum. Repos. d/Anqing. Repo
-- The file name can be specified by yourself.
5. Add the following content to the yum configuration file:
[Dave] -- you can specify it here
Name = Dave Yum server -- you can also specify it here
Baseurl = file: // media/Disk/Server/
Gpgcheck = 0
Enabled = 1
6. Verify Yum:
[Root @ rac2 yum. Repos. d] # Yum update
Loaded plugins: refresh-packagekit
Dave | 3.7 kb...
Dave/primary_db | 3.1 MB...
Setting up update process
No packages marked for update
-- Find the libxp package
[Root @ rac2/] # rpm-Qa | grep libxp
LibXpm-3.5.8-2.el6.x86_64
LibXp-1.0.0-15.1.el6.x86_64
-- Uninstall the libxp package
[Root @ rac2/] # rpm-e libXp-1.0.0-15.1.el6.x86_64
-- Install the libxp package:
[Root @ rac2/] # Yum-y install libxp
Loaded plugins: refresh-packagekit
Setting up install process
Resolving Dependencies
--> Running transaction check
---> Package libxp. x86_640: 1.0.0-15.1.el6 will be installed
--> Finished dependency resolution
Dependencies resolved
========================================================== ========================================================== ================================
Package arch version repository size
========================================================== ========================================================== ================================
Installing:
Libxp x86_64 1.0.0-15.1.el6 Dave 22 K
Transaction Summary
========================================================== ========================================================== ================================
Install 1 package (s)
-- The yum configuration file is displayed here.
Total download size: 22 K
Installed size: 39 K
Downloading packages:
Running rpm_check_debug
Running transaction Test
Transaction test succeeded
Running transaction
Warning: rpmdb altered outside of yum.
Installing: libXp-1.0.0-15.1.el6.x86_64 1/1
Installed:
Libxp. x86_64. 0.0-15.1.el6
Complete!
[Root @ rac2/] #
Bytes -------------------------------------------------------------------------------------------------------
All rights reserved. reprinted articles are allowed, but source addresses must be indicated by links. Otherwise, the documents will be held legally responsible!
Skype: tianlesoftware
Email: tianlesoftware@gmail.com
Blog: http://www.tianlesoftware.com
WEAVER: http://weibo.com/tianlesoftware
Twitter: http://twitter.com/tianlesoftware
Facebook: http://www.facebook.com/tianlesoftware
LinkedIn: http://cn.linkedin.com/in/tianlesoftware
------- Add a group to describe the relationship between Oracle tablespace and data files in the remarks section. Otherwise, reject the application ----
Dba1 group: 62697716 (full); dba2 group: 62697977 (full) dba3 group: 62697850 (full)
Super DBA group: 63306533 (full); dba4 group: 83829929 dba5 group: 142216823
Dba6 group: 158654907 dba7 group: 172855474 DBA group: 104207940