LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-14-2007, 06:27 AM   #1
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Rep: Reputation: 60
Linux to Solaris 10 Package Management


I am so confused on where to begin when it comes to dealing with package management with Solaris 10. I am so used to YUM(fedora)URPMI(Mandriva) and Yast(Suse) - RPM packages. What does Solaris use for package management and what are the files called? How would I query my system to see the packages installed and the names and the files associated with the packages like with linux: rpm -ql package-name ? Also where does Sun on its website hold the repositories for Solaris 10 in case of add-on that I would need. I am trying to install net::telnet for Solaris 10 and I would like to find a package for it as oppossed to installing it from a .tar

Last edited by metallica1973; 12-14-2007 at 06:34 AM.
 
Old 12-14-2007, 06:43 AM   #2
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Rep: Reputation: 36
Solaris is a well documented system and you can surf docs.sun.com to find everything you need.

In you specific case, in the Solaris 10 System administrator collection, you can read the "Basic administration" book, whose chapter 16 and following tells you all the answers you need.

The short story: pkgadd adds a package, pkginfo lists information about installed packages.
 
Old 12-14-2007, 07:10 AM   #3
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
I think you may find a lot of people use the
pkg-get system from blastwave.org.

it enables you to download, search and install in one go.

http://www.blastwave.org/howto.html

there is a GUI package browser too, whic for the life of me I cannot remember.
it's in the CD applications dir though.
 
Old 12-14-2007, 07:46 AM   #4
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
I downloaded a file called Bolt.pkg

so to install it from the /tmp directory I would use:

PHP Code:
pkgadd -/tmp/Bolt.pkg 
When I do that I get:

PHP Code:
# pkgadd Bolt.pkg
pkgaddERRORno packages were found in </var/spool/pkg
I even copied the file to /var/lspool/pkg and I get the same thing. I am not liking Solaris.
 
Old 12-14-2007, 07:50 AM   #5
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
pkgadd -d Bolt.pkg

download pkg-get from blastwave, make life simpler.

Quote:
I am not liking Solaris.
you will, remember when you started linux?
it was hard.

it's worth it just for ZFS.
 
Old 12-14-2007, 07:51 AM   #6
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Rep: Reputation: 36
I think it should be
Code:
pkgadd -d /path/to/pkg/dir package
so if you are in the package directory you can
Code:
pkgadd -d `pwd` Bolt.pkg
 
Old 12-14-2007, 08:05 AM   #7
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
that worked but you Solaris still has a long way to go as far as being user friendly and that is not to say much for linux. Many thank
 
Old 12-14-2007, 08:09 AM   #8
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
true true,
but it is really for power users.

once you get into it you can appreciate the underlying quality of it.
Taken as an operating system, not an environment, it's a superb tool.
 
Old 12-14-2007, 09:22 AM   #9
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Solaris installation and packaging user-friendliness (or lack of) is being addressed by the Indiana project.

http://www.opensolaris.org/os/project/indiana/
 
Old 12-14-2007, 09:49 AM   #10
Dox Systems - Brian
Member
 
Registered: Nov 2006
Posts: 344

Rep: Reputation: 31
Quote:
Originally Posted by bigearsbilly View Post
download pkg-get from blastwave, make life simpler.
Personally, I think pkg-get/blastwave make it worse. The built-in package management is quite easy. When I start using blastwave, I start getting weird errors and seemingly unrelated packages start breaking. I definitly wouldn't recommend it to someone new.
 
Old 12-14-2007, 10:08 AM   #11
crisostomo_enrico
Member
 
Registered: Dec 2005
Location: Madrid
Distribution: Solaris 10, Solaris Express Community Edition
Posts: 547

Rep: Reputation: 36
It's off topic but I ask you because you keep on telling us about the wonderful linux world.

Insisting to compare with GNU/linux it's a bit absurd. As jlliagre explained, a project has been opened to resolve such issues (and more). Solaris had a specific target and now it's moving towards less "power users", too, and it's doing this much later than GNU/linux did. So, wait some time and try Indiana, too.

Nevertheless I would ask you: what would linux users' answer to your question? I see some distros in your profile but I'm sure that if we'd ask, for example, a Slackware user, a Debian user, a Gentoo user, etc., everyone would swear that its distro's pkg management is the best. At least, Solaris isn't as fragmented as GNU/linux distros' users are.

Last edited by crisostomo_enrico; 12-14-2007 at 02:03 PM.
 
Old 12-17-2007, 04:06 AM   #12
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,515

Rep: Reputation: 239Reputation: 239Reputation: 239
well, I am perfectly happy with pkg-get and have had no problems to date.

I use ubuntu on a laptop and I like the synaptic system, but I can't see it as 'better' than pkg-get;
it does the same thing, just with a GUI

I didn't even bother with slackware packages, pointless. I would compile myself.
 
Old 12-17-2007, 05:09 AM   #13
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
I believe Dox System - Brian is ranting about Blastwave, not pkg-get. They shouldn't be confused.

pkg-get is a tool that automatize package installation and do it pretty well.

Blastwave is a community driven Solaris freeware repository which provides packages for Solaris 8 which generally run on newer Solaris releases. To avoid bad interactions with bundled software and because duplication is unavoidable, Blastwave is installing its files almost exclusively under /opt/csw directory. At least this prevents from breaking "official" packages. I agree some of the Blastwave packages are outdated or of uneven quality. Should one dislike Blastwave, pkg-get can still be used and point to any other repository supporting pkg-get catalog format, although I'm afraid only Sunfreeware is currently in the list.
 
Old 12-17-2007, 05:40 AM   #14
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
can pkgadd install *.gz files? I noticed that on freesunware.com most of the packages are *.gz.
 
Old 12-17-2007, 06:23 AM   #15
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
pkg-get is handling gzipped packages.

You need to uncompress the packages for pkgadd to install them.
 
  


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
Linux package management ! how many?? cyberiapost Linux - Newbie 16 12-25-2006 02:29 PM
LXer: Simple Package management with Synaptic Package Manager LXer Syndicated Linux News 0 12-05-2006 06:33 PM
package management (new to solaris) xushi Solaris / OpenSolaris 16 10-04-2006 02:42 PM
Using Package Archive style package management mugwump84 Linux From Scratch 3 08-25-2005 05:19 PM

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

All times are GMT -5. The time now is 06:11 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