How to configure the local yum installation source of the remote server During Remote Installation

Source: Internet
Author: User
During remote installation implementation, configure local yum installation source overview1. use ftp to upload the OracleLinux-R5-U8-Server-x86_64-dvd.iso to the/home directory. Then use the mount command to mount the image. Mount/home/OracleLinux-R5-U8-Se... how to configure local yum installation source overview1. use ftp to upload the OracleLinux-R5-U8-Server-x86_64-dvd.iso to the/home directory during remote installation implementation. Then use the mount command to mount the image. Mount/home/OracleLinux-R5-U8-Server-x86_64-dvd.iso/media-o loop 2. confirm that xx. iso is already under/media. Cd/media ll 3. edit the yum configuration file: vi/etc/yum. repos. d/oel-media.repo [oel-media] name = oel 5.8 baseurl = file:///media/Serverenabled=1gpgcheck=0 4. clear the yum cache and use yuminstall to automatically install the software yum clean allyum install oracle-validated FYI. the following example shows how to automatically configure the installation environment of oracle linux using oracle-validated-rpm that comes with oracle linux. [Root @ lixora home] # lltotal 6884764-rw-r -- r -- 1 root 801603584 Jun 28 10201_database_linux_x86_64.cpio-rw-r -- r -- 1 root 3884036096 Jun 2807: 06 OracleLinux-R5-U8-Server-x86_64-dvd.iso-rw-r -- r -- 1 root 1307536871 Jun 2806: 50 p10098816_112020_Linux-x86-64_1of7.zip-rw-r -- r -- 1 root 1049912579 Jun 2806: 49 p10098816_112020_Linux-x86-64_2of7.zip mount image [root @ lixora home] # mount/home/OracleLinux-R5-U8-Server-x86_64-dvd.iso/media-o loop [root @ lixora home] # cd/media [root @ lixora media] # lltotal 732-rw-r -- r -- 1 root 5165 Feb 29 2012 blafdoc.css drwxr-xr-x 3 root 2048 Feb 29 2012 Clusterdrwxr-xr-x 3 root 4096 Feb 29 2012 ClusterStorage-rw-r -- r -- 1 root 6830 Feb 29 2012 EULA-rw-r -- 1 root 7041 Feb 29 2012 eula. en_US-rw-r -- r -- 1 root 3334 Feb 29 2012 eula. py-rw-r -- 1 root 18390 Feb 29 2012 GPLdrwxr-xr-x 4 root 2048 Feb 29 2012 imagesdrwxr-xr-x 2 root 2048 Feb 29 2012 isolinux -rw-r -- 1 root 3547 Feb 29 2012 README-en-rw-r -- 1 root 7897 Feb 29 2012 README-en.html-rw-r -- r -- 1 root 35456 Feb 29 2012 RELEASE-NOTES-en-rw-r -- 1 root 38444 Feb 29 2012 RELEASE-NOTES-en.html-rw-r -- r -- 1 root 1397 Feb 29 2012 RPM-GPG-KEY-rw- r -- 1 root 1397 Feb 29 2012 RPM-GPG-KEY-oracledrwxr-xr-x 4 root 593920 Feb 29 2012 Server-rw-r -- 1 root 105Feb 29 2012 supportinfo-r -- 1 root 4436 Feb 29 2012 TRANS. TBLdrwxr-xr-x 3 root 8192 Feb 29 2012 VT [root @ lixora media] # pwd/media [root @ lixora media] # vi/etc/yum. repos. d/oel-media.repo [oel-media] name = oel 5.8 baseurl = file:///media/Serverenabled=1gpgcheck=0 "/Etc/yum. repos. d/oel-media.repo "[New] 6L, 77C written OK [root @ lixora media] # more/etc/yum. repos. d/oel-media.repo [oel-media] name = oel 5.8 baseurl = file:///media/Serverenabled=1gpgcheck=0 Start installing oracle-validated-rpm [root @ lixora media] # yum clean allLoaded plugins: rhnplugin, securityCleaning up Everything [root @ lixora media] # yum installoracle-validatedLoaded plugins: rhnplugin, securityThis system is not registered with ULN. ULN support will be disabled. oel-media | 1.1 kB oel-media/primary | 1.4 MB oel-media 3298/3298 Setting up Install ProcessResolving Dependencies --> Runni Ng transaction check ---> Package oracle-validated.x86_640: 1.1.0-15. el5 set to be updatedoel-media/filelists | 3.1 MB 00:00 --> Processing Dependency: sysstat forpackage: oracle-validated --> Processing Dependency:/usr/lib/libaio. so for package: oracle-validated --> Processing Dependency: glibc-headersfor package: oracle-validated --> Processing Dependency: elfutils-libelf-devel for package: oracle-vali Dated --> Processing Dependency: unixODBC-devel for package: oracle-validated --> Processing Dependency:/usr/lib64/libodbcr. so for package: oracle-validated --> Processing Dependency: gcc-c ++ forpackage: oracle-validated --> Processing Dependency: libaio-develfor package: oracle-validated --> Processing Dependency: gcc forpackage: oracle-validated -- & gt; Processing Dependency:/usr/lib/gcc/x86_64-redhat-linu X/4.1.1/libstdc ++. a for package: oracle-validated --> Processing Dependency:/usr/lib/libc. so for package: oracle-validated --> Processing Dependency:/usr/lib64/libaio. so for package: oracle-validated --> Processing Dependency:/usr/lib64/libc. so for package: oracle-validated --> Processing Dependency:/usr/lib/libodbcr. sofor package: oracle-validated --> Processing Dependency: libXp. so.6for package: ora Cle-validated --> Running transaction check ---> Packageelfutils-libelf-devel.x86_64 0: 0. 137-3.el5 set to beupdated --> Processing Dependency: elfutils-libelf-devel-static-x86_64 = 0.137-3. el5 for package: elfutils-libelf-devel ---> Package gcc. x86_64 0: 4. 1.2-52. el5set to be updated ---> Package gcc-c ++. x86_640: 4.1.2-52. el5 set to be updated -----> Package glibc-devel.i386 0: 2. 5-81 set to be updated ---> Packa Ge glibc-devel.x86_64 0: 2. 5-81 set to be updated ---> Package glibc-headers.x86_640: 2.5-81 set to be updated --> Processing Dependency: kernel-headers> = 2.2.1 for package: glibc-headers --> Processing Dependency: kernel-headers for package: glibc-headers ---> Package libXp. i386 0: 1. 0.0-8.1.el5set to be updated ---> Package libaio-devel.i3860: 0.3.106-5 set to be updated ---> Package libaio-devel.x86_640: 0.3. 106-5 set to be updated ---> Package libstdc ++-devel. x86_640: 4.1.2-52. el5 set to be updated ---> Package sysstat. x86_640: 7.0.2-11. el5 set to be updated ---> Package unixODBC-devel.i3860: 2.2.11-10. el5 set to be updated ---> Package unixODBC-devel.x86_640: 2.2.11-10. el5 set to be updated --> Running transaction check --> Packageelfutils-libelf-devel-static.x86_64 0: 0. 137-3.el5 set tobe updated ---> Packag E kernel-headers.x86_640: 2.6.18-308. el5 set to be updated --> Finished Dependency Resolution Dependencies Resolved ==================== ========================================================== =========== Package Arch Version Repository Size ======================== ========================================================== ======================== Installing: oracle-validated x86_64 1.1.0-15. el5 oel-media 24 kInstalling for dependencie S: elfutils-libelf-devel X 86_64 0.137-3. el5 oel-media 24 k elfutils-libelf-devel-static x86_64 0.137-3. el5 oel-media 64 k gcc x86_64 4.1.2-52. el5 oel-media 5.3 M gcc-c ++ x86_64 4.1.2-52. el5 oel-media 3.8 M glibc-devel i386 2.5-81 oel-media 2.0 M glibc-devel x86_64 2.5-81 oel-media 2.4 M glibc-headers x86_64 2.5-81 oel-media 596 k kernel-headers x86_64 2.6.18-308. el5 oel-media 1.4 M libXp i386 1.0. 0-8.1.el5 oel-media 22 k libaio-devel i386 0.3.106-5 oel-media 12 k libaio-devel x86_64 0.3.106-5 oel-media 11 k libstdc ++-devel x86_64 4.1.2-52. el5 oel-media 2.8 M sysstat x86_64 7.0.2-11. el5 oel-media 187 k unixODBC-devel i386 2.2.11-10. el5 oel-media 38 k unixODBC-devel x86_64 2.2.11-10. el5 oel-media 793 k Transaction Summary ============================== ======================================================== ========= Install 16 Package (s) Upgrade 0 Package (s) Total download size: 20 MIs this OK [y/N]: yDownloading Packages: bytes Total 433 MB/s | 20 MB Running rpm_check_debugRunning Transaction TestFinished Transaction TestTransaction Test SucceededRunning Transaction Installing: libstdc ++-devel 1/16 Installing: sysstat 2/16 Installing: libaio-devel 3/16 Installing: unixODBC-devel 5/16 Installing: kernel-headers 6/16 Installing: glibc-headers 7/16 Installing: glibc-devel 8/16 Installing: glibc-devel 9/16 Installing: libaio-devel 10/16 Installing: libXp 11/16 Installing: gcc 12/16 Installing: gcc-c ++ 13/16 Installing: elfutils-libelf-devel 14/16 Installing: oracle-validated 15/16 Installing: elfutils-libelf-dev El-static 16/16 Installed: oracle-validated.x86_64. 1.0-15. el5 Dependency Installed: elfutils-libelf-devel.x86_64 0: 0. 137-3.el5 elfutils-libelf-devel-static.x86_640: 0.137-3. el5 gcc. x86_64 0: 4. 1.2-52. el5 gcc-c ++. x86_64 0: 4. 1.2-52. el5 glibc-devel.i386 0: 2. 5-81 glibc-devel.x86_64 0: 2. 5-81 glibc-headers.x86_64 0: 2. 5-81 kernel-headers.x86_64 0: 2. 6.18-308. el5 libXp. i3860: 1.0.0-8.1.el5 libaio-devel.i3 86 0: 0. 3.106-5 libaio-devel.x86_64 0. 3.106-5 libstdc ++-devel. x86_64 0: 4. 1.2-52. el5 sysstat. x86_64 0: 7. 0.2-11. el5 unixODBC-devel.i386 0: 2. 2.11-10. el5 unixODBC-evel.x86_64 0: 2. 2.11-10. el5 Complete! By now, all oracle-validate-rpm has been installed and all the equipment has been ready for us. [Root @ lixora media] # id oracleuid = 54321 (oracle) gid = 54321 (oinstall) groups = 54321 (oinstall), 54322 (dba) [root @ lixora media] # passwd oracleChanging password for user oracle. new UNIX password: bad password: it is based on a dictionarywordRetype new UNIX password: passwd: all authentication tokens updatedsuccessfully. [root @ lixora media] #

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.