LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 07-08-2010, 08:37 AM   #1
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Rep: Reputation: 94
Enabling a Local repo...


Hi...

Quote:
Next, configure the pkg.depotd(1m) service to use the new configuration
file:

svccfg -s application/pkg/server setprop \
pkg/cfg_file=<path_to_your_cfg_cache>

Then, using a text editor of your choice, change the following line in
the above file:

origins = http://pkg.opensolaris.org/release

Replace everything after ' = ', to the end of the line, with the
network-accessible hostname of the system that the depot server will be
hosted on as follows (if you changed the port number above, you would
include it using :<port_number>, after '.com' in the example below):


origins = http://example.com/

There are additional values within the file that you may wish to customize
to provide additional information to packaging clients. Please see "pydoc
pkg.client.publisher" in the "class Repository" section for an explanation
of these properties.

pkg.depotd(1m) can now be started and used for serving packages to pkg(5)
clients by refreshing the corresponding SMF service configuration and
enabling the service:

svcadm refresh application/pkg/server
svcadm enable application/pkg/server

To set clients to use only this depot server to retrieve package content
for the OpenSolaris 2009.06 release, execute the following command on each
client (where <origin> is the value you provided for 'origins' above):

pkg set-publisher -O <origin> opensolaris.org
in http://www.genunix.org/dist/indiana/README.osol-repo


So... my local repo lives in /export/home/alex/my_repo, and i cp /export/home/alex/my_repo/repo/cfg_cache /etc/0906_cfg_cache, and edited like

changing "origins =..." to "origins = iskandhar " ( hostname ) or "origins = /export/home/alex/my_repo " none of these did...

How must I change that file given that my hostname is iskandhar, and my repo lives in /export/home/alex/my_repo...?

BRGDS

Alex
 
Old 07-08-2010, 12:22 PM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Quote:
network-accessible hostname
You have not complied with the instructions. The example does not contain a simple hostname or a simple path. I would suggest http://localhost/ but I don't know if you need a web server running, or if the depot server takes care of that. If it's anything like yum repos then if you use a path then the protocol must be file:///path/to/local/repo

Last edited by smoker; 07-08-2010 at 12:27 PM.
 
1 members found this post helpful.
Old 07-08-2010, 12:45 PM   #3
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Hi Smoker

Thkz for your answer, in fact, pacman of ArchLinux works like this...

I have a local repo enabled, which is pointed to in /etc/pacman.conf as file:///mount/my_repo/.../{core community extra}

but i tried this origins=file:///export/home/alex/my_repo in OpenSolaris without any success...



Thx anyway...

BRGDS

Alex
 
Old 07-08-2010, 12:54 PM   #4
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Did you try http://localhost/ ?
 
1 members found this post helpful.
Old 07-08-2010, 01:03 PM   #5
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Hi Smoker...

Quote:
Did you try http://localhost/ ?

Not yet... I am away from my Solaris box at the moment...

I will try this as soon as I get back home...

Thx
 
Old 07-09-2010, 07:25 AM   #6
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Hi Again

It was http://localhost allright...

Now, about other repos...

Blastwave packs stuff in SVR4 format... no no good for OpenSolaris...

Are there any more repos packaging stuff in OpenSolaris IPS format...?

BRGDS

Alex
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
local repo pravlin Debian 2 07-23-2009 08:22 AM
yum local repo dlee12 Linux - Newbie 1 03-01-2009 12:26 PM
Local YUM Repo lord loh. Linux - Software 2 05-28-2007 12:41 AM
local apt repo anantshri Linux - Software 1 01-02-2006 06:33 AM
I need a local rpm repo a13x Linux - Networking 4 12-16-2004 11:27 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 11:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration