how to find the package name, if I knwo the path


 
Thread Tools Search this Thread
Operating Systems Solaris how to find the package name, if I knwo the path
# 1  
Old 05-08-2009
how to find the package name, if I knwo the path

how to find the package name, if I knwo the path in solaris.

for an example /usr/xxx

Can you please advise?
# 2  
Old 05-08-2009
Oops, my mistake... it should be:

# pkgchk -l -P /usr/xxx

Last edited by bartus11; 05-10-2009 at 05:48 PM..
# 3  
Old 05-10-2009
I've always used:
Code:
# grep -w "/path/file" /var/sadm/install/contents

the last field will be the package name.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need find package that supports printf on AIX

My current find command does not support printf. I need find package that supports printf on AiX 6.1 system. Can anyone help me with the download link or where / how / if I can find it ? Can it be installed at a different non default location so that it can be reference without... (5 Replies)
Discussion started by: mohtashims
5 Replies

2. UNIX for Beginners Questions & Answers

Unable to find package

Hi there. I'm putting together a small cluster of Raspberry pis running Raspbian. They've all been setup identically from the same sd image. They all update and install perfectly except one node which refuses to install anything. It has exactly the same login, network, user details etc,... (3 Replies)
Discussion started by: MuntyScrunt
3 Replies

3. Solaris

Finding the path to an executable , installed package

Hi all, Recently i wanted to see if i have openssl installed in my system (solaris 10), so i do this (not sure if this is the right way to do this) pkginfo -i | grep -i "ssl" system SUNWopenssl-commands OpenSSL Commands (Usr) system SUNWopenssl-include ... (3 Replies)
Discussion started by: javanoob
3 Replies

4. UNIX for Dummies Questions & Answers

Find files associated with a package using Ubuntu

Stupid question of the day. How can I find a file that is associated with a package installed on my Ubuntu 12.04 desktop. More clarification, so if I: lsof -p 11399 java 11399 davider mem REG 8,6 438211 265067 /usr/lib/java/jre1.7.0_07/lib/i386/libt2k.so How can I... (4 Replies)
Discussion started by: metallica1973
4 Replies

5. UNIX for Dummies Questions & Answers

Can't install rpm package with --prefix in new path.Error: package is not relocatable

Hello, i have downloaded an rpm package "hadoop-0.20.205.0-1.amd64.rpm" in /usr/local/ directory. I'm trying to install the rpm package in a new path/location (/usr/local/hadoop-0.20.205), but i can't. I did: 1st try: Didn't work sudo rpm -i --prefix=/usr/local/hadoop-0.20.205... (1 Reply)
Discussion started by: g_p
1 Replies

6. UNIX for Advanced & Expert Users

How to find dependancies of .dstream package (Solaris) & .rpm package( linux)

Friends, Please let meknow, How we can find the dependancies of .dstream package & .rpm package before installation ? For AIX, We can use the inutoc . command to create the .toc file for the bff package, What about Solaris & Linux ? (0 Replies)
Discussion started by: yb4779
0 Replies

7. UNIX for Advanced & Expert Users

X-Emacs Install: Can't specify package path (21.5.29)

Hello, all. I'm trying to compile and install X-Emacs. The .configure package path options for installing new versions of X-Emacs has changed, and I can't make them work for me! I'm trying to install X-Emacs 21.5.29 (current Beta), and despite using the new package path .configure... (0 Replies)
Discussion started by: LovinLinux
0 Replies

8. Shell Programming and Scripting

Ignoring package contents with find

Hi everyone, I use the command find to get all folder contents of a folder. The problem is, it also gives files from within other files with package contents. (.app, .rtfd, ...). Is there anyway to not do that ? find /path/to/my/folder/ ! -name '.*'" (I'm using OS X, I don't know if other... (0 Replies)
Discussion started by: JamesGreen
0 Replies

9. Linux

Find installed location of a relocatable package

Hi, I am finding the installed location of a package by: rpm -qi <package_name> And then parse the string "Relocations". If i relocate this package during installation with --relocate option , the "Relocations" string still shows the old value. Though the package has been installed on the... (0 Replies)
Discussion started by: vibhor_agarwali
0 Replies

10. UNIX for Dummies Questions & Answers

apt-get is unabel to find the package

Hi All, I am getting the following error when installing teh package kernel-source-2.6.10 ba-chroot:~# apt-get install kernel-source-2.6.10 Reading Package Lists... Done Building Dependency Tree... Done E: Couldn't find package kernel-source-2.6.10 thanks & Regards Gauri (4 Replies)
Discussion started by: gauri
4 Replies
Login or Register to Ask a Question