pkg-get??

  • Follow


What's the secret to using pkg-get from blastwave?

I tried:
# pkg-get -install tetex
and got:

/opt/csw/bin/pkg-get[1830]: getopts: n bad option(s)
pkg-get,   by Philip Brown , phil@bolthole.com
(Internal SCCS code revision 3.4)
Originally from http://www.bolthole.com/solaris/pkg-get.html

pkg-get is used to install free software packages
pkg-get
Need one of 'install', 'upgrade', 'available','compare'
'-i|install'   installs a package
'-u|upgrade'   upgrades already installed packages if possible
'-a|available' lists the available packages in the catalog
'-c|compare'   shows installed package versions vs available
'-l|list'      shows installed packages by software name only

Optional modifiers:
'-d|download'  just download the package, not install
'-D|describe'  describe available packages, or search for one
'-U|updatecatalog'   updates download site inventory
'-S|sync'      Makes update mode sync to version on mirror site
'-f'           dont ask any questions: force default pkgadd behaviour
Normally used with an override admin file
See /var/pkg-get/admin-fullauto

'-s ftp://site/dir'  temporarily override site to get from

0
Reply rgilbert88 (4368) 2/11/2007 9:58:44 PM

Richard B. gilbert schrieb:
> What's the secret to using pkg-get from blastwave?
> 
> I tried:
> # pkg-get -install tetex
> and got:
> 
> /opt/csw/bin/pkg-get[1830]: getopts: n bad option(s)
> pkg-get,   by Philip Brown , phil@bolthole.com
> (Internal SCCS code revision 3.4)
> Originally from http://www.bolthole.com/solaris/pkg-get.html
> 
> pkg-get is used to install free software packages
> pkg-get
> Need one of 'install', 'upgrade', 'available','compare'
> '-i|install'   installs a package
> '-u|upgrade'   upgrades already installed packages if possible
> '-a|available' lists the available packages in the catalog
> '-c|compare'   shows installed package versions vs available
> '-l|list'      shows installed packages by software name only
> 
> Optional modifiers:
> '-d|download'  just download the package, not install
> '-D|describe'  describe available packages, or search for one
> '-U|updatecatalog'   updates download site inventory
> '-S|sync'      Makes update mode sync to version on mirror site
> '-f'           dont ask any questions: force default pkgadd behaviour
> Normally used with an override admin file
> See /var/pkg-get/admin-fullauto
> 
> '-s ftp://site/dir'  temporarily override site to get from
> 
As the help text indicates, use either
pkg-get -i tetex
or
pkg-get install tetex

Cheers
Andreas
0
Reply Andreas 2/11/2007 10:02:27 PM


Andreas Wacknitz wrote:
> Richard B. gilbert schrieb:
> 
>> What's the secret to using pkg-get from blastwave?
>>
>> I tried:
>> # pkg-get -install tetex
>> and got:
>>
>> /opt/csw/bin/pkg-get[1830]: getopts: n bad option(s)
>> pkg-get,   by Philip Brown , phil@bolthole.com
>> (Internal SCCS code revision 3.4)
>> Originally from http://www.bolthole.com/solaris/pkg-get.html
>>
>> pkg-get is used to install free software packages
>> pkg-get
>> Need one of 'install', 'upgrade', 'available','compare'
>> '-i|install'   installs a package
>> '-u|upgrade'   upgrades already installed packages if possible
>> '-a|available' lists the available packages in the catalog
>> '-c|compare'   shows installed package versions vs available
>> '-l|list'      shows installed packages by software name only
>>
>> Optional modifiers:
>> '-d|download'  just download the package, not install
>> '-D|describe'  describe available packages, or search for one
>> '-U|updatecatalog'   updates download site inventory
>> '-S|sync'      Makes update mode sync to version on mirror site
>> '-f'           dont ask any questions: force default pkgadd behaviour
>> Normally used with an override admin file
>> See /var/pkg-get/admin-fullauto
>>
>> '-s ftp://site/dir'  temporarily override site to get from
>>
> As the help text indicates, use either
> pkg-get -i tetex
> or
> pkg-get install tetex
> 
> Cheers
> Andreas

Thanks!

It's not obvious what the "operator precedence" is for '-i|install'!   I 
read it as "-i" or "-install"


0
Reply Richard 2/11/2007 10:41:08 PM

On Feb 11, 2:41 pm, "Richard B. gilbert" <rgilber...@comcast.net>
wrote:
> Andreas Wacknitz wrote:
> > Richard B. gilbert schrieb:
> >> What's the secret to using pkg-get from blastwave?
> >> I tried:
> >> # pkg-get -install tetex
> >> and got:
> >> /opt/csw/bin/pkg-get[1830]: getopts: n bad option(s)
> >> pkg-get,   by Philip Brown , p...@bolthole.com
> >> (Internal SCCS code revision 3.4)
> >> Originally fromhttp://www.bolthole.com/solaris/pkg-get.html
> >> pkg-get is used to install free software packages
> >> pkg-get
> >> Need one of 'install', 'upgrade', 'available','compare'
> >> '-i|install'   installs a package
> >> '-u|upgrade'   upgrades already installed packages if possible
> >> '-a|available' lists the available packages in the catalog
> >> '-c|compare'   shows installed package versions vs available
> >> '-l|list'      shows installed packages by software name only
>
> >> Optional modifiers:
> >> '-d|download'  just download the package, not install
> >> '-D|describe'  describe available packages, or search for one
> >> '-U|updatecatalog'   updates download site inventory
> >> '-S|sync'      Makes update mode sync to version on mirror site
> >> '-f'           dont ask any questions: force default pkgadd behaviour
> >> Normally used with an override admin file
> >> See /var/pkg-get/admin-fullauto
> >> '-sftp://site/dir' temporarily override site to get from
> > As the help text indicates, use either
> > pkg-get -i tetex
> > or
> > pkg-get install tetex
> It's not obvious what the "operator precedence" is for '-i|install'!   I
> read it as "-i" or "-install"

Richard - the "|" indicates an OR operator. Either this OR that
in this case. Think booean either -i OR install (without dash) then
its obvious : >

0
Reply gerryt 2/12/2007 5:25:25 AM

On 2007-02-11, Richard B. gilbert <rgilbert88@comcast.net> wrote:
> It's not obvious what the "operator precedence" is for '-i|install'!   I 
> read it as "-i" or "-install"

In regular expressions, the alternation operator �|� has the lowest
priority. See section �ERE Precedence� in regex(5).

Andreas.
0
Reply comp 2/13/2007 4:45:51 PM

4 Replies
92 Views

(page loaded in 3.124 seconds)

Similiar Articles:











7/23/2012 10:25:29 AM


Reply: