Professional Documents
Culture Documents
Solaris11IPSLocalRepository|progeeking
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;
http://progeeking.com/2014/04/13/solaris11ipslocalrepository/
1/4
3/2/2015
Solaris11IPSLocalRepository|progeeking
Codeexample:
1
2
3
4
5
6
7
8
9
10
root@sol11:~#catsol11_1repofull.isoasol11_1repofull.isob>sol11_1repofull.iso
root@sol11:~#mountFhsfssol11_1repofull.iso/mnt
root@sol11:~#zfscreateoatime=offocompression=onrpool/export/repoSolaris11
root@sol11:~#pkgrepocreate/export/repoSolaris11
root@sol11:~#rsyncaPq/mnt/repo/export/repoSolaris11
root@sol11:~#pkgrepos/export/repoSolaris11refresh
Initiatingrepositoryrefresh.
root@sol11:~#pkgsetpublisherG'*'M'*'g/export/repoSolaris11/reposolaris
root@sol11:~#umount/mnt
root@sol11:~#
Notepkgsetpublisher:
G*Removesallexistingoriginsforthesolarispublisher.
M*Removesallexistingmirrorsforthesolarispublisher.
UPDATINGTHEREPOSITORY
Againbasicsteps:
1.Downloadtheincrrepo/fromMOS/;
2.Mounttheiso;
3.Updatetherepository;
4.Refreshthesearchindex;
5.Unmounttheiso;
1
2
3
4
5
6
7
8
9
10
root@sol11:~$mountFhsfssol11_1_17_5_0incrrepo.iso/mnt
root@sol11:~$pkgrecvs/mnt/repod/export/repoSolaris11'*'
Processingpackagesforpublishersolaris...
Retrievingandevaluating626package(s)...
PROCESSITEMSGET(MB)SEND(MB)
Completed626/6263109/31097243/7243
root@sol11:~$pkgrepos/export/repoSolaris11refresh
Initiatingrepositoryrefresh.
root@sol11:~$umount/mnt
http://progeeking.com/2014/04/13/solaris11ipslocalrepository/
2/4
3/2/2015
11
Solaris11IPSLocalRepository|progeeking
root@sol11:~$
CONFIGURINGHTTPSERVICE
WecansharetherepositorytroughNFSorHTTP.WithNFSwejustneedtoexporttherepodir,mountitonthetargetmachineand
execute:pkgsetpublisherG'*'M'*'g/nfs/mount/pointsolaris
ForHTTPweneedtoconfiguretheservicefirst:
1
2
3
4
5
6
7
root@sol11:~$svccfgsapplication/pkg/serversetproppkg/inst_root=/export/repoSolaris11
root@sol11:~$svccfgsapplication/pkg/serversetproppkg/readonly=true
root@sol11:~$svccfgsapplication/pkg/serversetproppkg/address=192.168.1.9
root@sol11:~$svccfgsapplication/pkg/serversetproppkg/port=65007
root@sol11:~$svcadmrefreshapplication/pkg/server
root@sol11:~$svcadmenableapplication/pkg/server
root@sol11:~$
Inherewearejustmakingthereporeadonlyandsettingtherepodir,addr,porttotheappropriatevalues.
Afterthatweshallenabletherepoonthetargetmachines:
1
2
root@sol11:~$pkgsetpublisherG'*'M'*'ghttp://192.168.1.9:65007/solaris
root@sol11:~$
Kovachev
http://progeeking.com/2014/04/13/solaris11ipslocalrepository/
3/4
3/2/2015
Solaris11IPSLocalRepository|progeeking
30%
60%
ONLYLUCCAChaqueta
deinviernopeat
39,95 27,95
ThisPostwaspostedinConfiguration,Oracle,Performance.Bookmarkthepermalink.
BlogatWordPress.com.|TheTrvlTheme.
Follow
Followprogeeking
BuildawebsitewithWordPress.com
http://progeeking.com/2014/04/13/solaris11ipslocalrepository/
4/4