solaris 11 – ips local repository _ progeeking

4
3/2/2015 Solaris 11 – IPS Local Repository | progeeking http://progeeking.com/2014/04/13/solaris11ipslocalrepository/ 1/4 GEEKING AS PROFESSION progeeking Solaris 11 – IPS Local Repository April 13, 2014 by Nikolay Kovachev A fast and straight approach for creating local IPS repository. CREATING THE REPOSITORY The steps are basic: 1.Download the repository; (http://www.oracle.com/technetwork/server‑storage/solaris11/downloads/index.html?ssSourceSiteId=opn) 2.Concatenate the iso files; 3.Mount the iso; 4.Create the zfs dataset; 5.Create the repository; 6.Copy the repository; 7.Build the search index; 8.Set the repository; 9.Unmount the iso;

Upload: baraka08

Post on 07-Sep-2015

216 views

Category:

Documents


2 download

DESCRIPTION

Solaris Local Repository

TRANSCRIPT

  • 3/2/2015 Solaris11IPSLocalRepository|progeeking

    http://progeeking.com/2014/04/13/solaris11ipslocalrepository/ 1/4

    GEEKINGASPROFESSION

    progeeking

    Solaris11IPSLocalRepository

    April13,2014byNikolayKovachev

    AfastandstraightapproachforcreatinglocalIPSrepository.

    CREATINGTHEREPOSITORY

    Thestepsarebasic:1.Downloadtherepository;(http://www.oracle.com/technetwork/serverstorage/solaris11/downloads/index.html?ssSourceSiteId=opn)2.Concatenatetheisofiles;3.Mounttheiso;4.Createthezfsdataset;5.Createtherepository;6.Copytherepository;7.Buildthesearchindex;8.Settherepository;9.Unmounttheiso;

  • 3/2/2015 Solaris11IPSLocalRepository|progeeking

    http://progeeking.com/2014/04/13/solaris11ipslocalrepository/ 2/4

    Codeexample:

    Notepkgsetpublisher:G*Removesallexistingoriginsforthesolarispublisher.M*Removesallexistingmirrorsforthesolarispublisher.

    UPDATINGTHEREPOSITORY

    Againbasicsteps:1.Downloadtheincrrepo/fromMOS/;2.Mounttheiso;3.Updatetherepository;4.Refreshthesearchindex;5.Unmounttheiso;

    12345678910

    root@sol11:~#catsol11_1repofull.isoasol11_1repofull.isob>sol11_1repofull.isoroot@sol11:~#mountFhsfssol11_1repofull.iso/mntroot@sol11:~#zfscreateoatime=offocompression=onrpool/export/repoSolaris11root@sol11:~#pkgrepocreate/export/repoSolaris11root@sol11:~#rsyncaPq/mnt/repo/export/repoSolaris11root@sol11:~#pkgrepos/export/repoSolaris11refreshInitiatingrepositoryrefresh.root@sol11:~#pkgsetpublisherG'*'M'*'g/export/repoSolaris11/reposolarisroot@sol11:~#umount/mntroot@sol11:~#

    12345678910

    root@sol11:~$mountFhsfssol11_1_17_5_0incrrepo.iso/mntroot@sol11:~$pkgrecvs/mnt/repod/export/repoSolaris11'*'Processingpackagesforpublishersolaris...Retrievingandevaluating626package(s)...PROCESSITEMSGET(MB)SEND(MB)Completed626/6263109/31097243/7243root@sol11:~$pkgrepos/export/repoSolaris11refreshInitiatingrepositoryrefresh.root@sol11:~$umount/mnt

  • 3/2/2015 Solaris11IPSLocalRepository|progeeking

    http://progeeking.com/2014/04/13/solaris11ipslocalrepository/ 3/4

    CONFIGURINGHTTPSERVICE

    WecansharetherepositorytroughNFSorHTTP.WithNFSwejustneedtoexporttherepodir,mountitonthetargetmachineandexecute:pkgsetpublisherG'*'M'*'g/nfs/mount/pointsolaris

    ForHTTPweneedtoconfiguretheservicefirst:

    Inherewearejustmakingthereporeadonlyandsettingtherepodir,addr,porttotheappropriatevalues.

    Afterthatweshallenabletherepoonthetargetmachines:

    Kovachev

    11 root@sol11:~$

    1234567

    root@sol11:~$svccfgsapplication/pkg/serversetproppkg/inst_root=/export/repoSolaris11root@sol11:~$svccfgsapplication/pkg/serversetproppkg/readonly=trueroot@sol11:~$svccfgsapplication/pkg/serversetproppkg/address=192.168.1.9root@sol11:~$svccfgsapplication/pkg/serversetproppkg/port=65007root@sol11:~$svcadmrefreshapplication/pkg/serverroot@sol11:~$svcadmenableapplication/pkg/serverroot@sol11:~$

    12

    root@sol11:~$pkgsetpublisherG'*'M'*'ghttp://192.168.1.9:65007/solarisroot@sol11:~$

  • 3/2/2015 Solaris11IPSLocalRepository|progeeking

    http://progeeking.com/2014/04/13/solaris11ipslocalrepository/ 4/4

    ThisPostwaspostedinConfiguration,Oracle,Performance.Bookmarkthepermalink.

    BlogatWordPress.com.|TheTrvlTheme.

    Follow

    Followprogeeking

    BuildawebsitewithWordPress.com

    30%

    ONLYLUCCAChaquetadeinviernopeat39,95 27,95

    60%

    About these ads (http://wordpress.com/about-these-ads/)