LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-16-2007, 05:29 AM   #1
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Rep: Reputation: 31
how may I know whether a program is installed or not?


I have solaris 10.
I would like to know if wget installed is, but neither locate nor whereis seem to be installed.
how is one supposed to know if one program is already installed?
 
Old 01-16-2007, 06:05 AM   #2
Broder
Member
 
Registered: Oct 2006
Location: Santa Barbara, C.A.
Distribution: Mood dependent
Posts: 117

Rep: Reputation: 15
You could try which
 
Old 01-16-2007, 06:12 AM   #3
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
I think I read on a thread here yesterday that wget isn't installed in Solaris by default, and that fetch is an alternative which is installed. Might be wrong though
 
Old 01-16-2007, 06:15 AM   #4
neil
Member
 
Registered: Jul 2001
Location: Kent, UK
Distribution: /Fedora/Debian/Ubuntu/Xubuntu
Posts: 108

Rep: Reputation: 15
type this

# type wget

To see what this does do
# type ls

Dirty way of finding it. (dont do this on production systems)
# find / | grep wget
 
Old 01-16-2007, 07:54 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,236

Rep: Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685
You can use pkginfo:
Code:
pkginfo|grep -i wget
 
Old 01-16-2007, 08:09 AM   #6
Dox Systems - Brian
Member
 
Registered: Nov 2006
Posts: 344

Rep: Reputation: 31
"find / -name wget" works too. You should find it under /usr/sfw/bin in the default install.
 
Old 01-16-2007, 08:36 AM   #7
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint, Tribblix
Posts: 9,746

Rep: Reputation: 456Reputation: 456Reputation: 456Reputation: 456Reputation: 456
Or faster:
Code:
grep -w wget /var/sadm/install/contents
 
Old 01-17-2007, 09:30 AM   #8
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Original Poster
Rep: Reputation: 31
thanks a lot the replies!

wget is installed (/usr/sfw/bin). but why aren't they wget entries in the manpages then? How can I change this?
when I give
Quote:
grep -w wget /var/sadm/install/content
it says:
Quote:
/usr/sfw/share/man/man1/wget.1 f none 0444 root bin 59496 19741 1105179227 SUNWsfman
and when I give
Quote:
grep -w md5sum /var/sadm/install/contents
, it gives me
Quote:
/usr/bin/gst-md5sum f none 0755 root other 12260 13175 1103148915 SUNWgnome-media
/usr/bin/gst-md5sum-0.8 f none 0755 root other 12204 50514 1103148916 SUNWgnome-media
/usr/share/man/sman1/gst-md5sum-0.8.1 f none 0755 root other 9167 53155 1103152338 SUNWgnome-media-share
/usr/share/man/sman1/gst-md5sum.1 f none 0755 root other 227 16315 1103152338 SUNWgnome-media-share
what does this all mean?
thanks.

Last edited by xpucto; 01-17-2007 at 09:32 AM.
 
Old 01-17-2007, 10:53 AM   #9
mackdav
Member
 
Registered: Feb 2005
Distribution: RHEL, CentOS
Posts: 113

Rep: Reputation: 16
The manpages are probably not in your manpath.

Try:

export MANPATH=$MANPATH:/opt/sfw/man
 
Old 01-17-2007, 02:04 PM   #10
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint, Tribblix
Posts: 9,746

Rep: Reputation: 456Reputation: 456Reputation: 456Reputation: 456Reputation: 456
Quote:
Originally Posted by xpucto
what does this all mean?
"man contents" will tell you.
 
Old 01-19-2007, 05:29 AM   #11
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Original Poster
Rep: Reputation: 31
thanks for the help.
 
Old 01-19-2007, 07:57 AM   #12
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by mackdav
The manpages are probably not in your manpath.

Try:

export MANPATH=$MANPATH:/opt/sfw/man
thank you! it works now.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Where Does The Program Go When It's Installed? ygokazuki Mandriva 7 09-26-2004 12:34 PM
installed the program.. but where did it go? c0mpl3t3n00b Linux - Newbie 1 02-20-2004 01:19 AM
program installed in my pc TAAN Linux - Software 1 01-04-2004 08:33 AM
where is the program installed? juanb Linux - Software 6 07-10-2003 08:08 AM
how can I understand whether a program installed or not installed? emin Linux - Newbie 2 10-13-2002 11:29 AM

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

All times are GMT -5. The time now is 04:26 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration