Solaris / OpenSolarisThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,
Can I use wild character like * in pkgadd parameters.
e.g. I have all pkg file starting with "idsldap."
bash-3.2# pkgadd -d idsldap*.pkg
pkgadd: ERROR: no packages were found in </var/tmp/dstreAAAz5aquw>
bash-3.2# pkgadd -d idsldap*
pkgadd: ERROR: no packages were found in </var/tmp/dstreAAAeeaavw>
I observed that if I give package name directly like
bash-3.2# pkgadd -d idsldap.wp63.pkg
The following packages are available:
1 IDSlwp63 IBM Directory Server - WhitePages
(sparc) 6.3.0.29
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:
So my question is
1. pkgadd -d idsldap* is a user error OR
2. pkgadd -d idsldap* is an error in pkgadd
Same is observed in pkgrm with * in parameters.
Let me know.
Hi,
Can I use wild character like * in pkgadd parameters. e.g. I have all pkg file starting with "idsldap."
bash-3.2# pkgadd -d idsldap*.pkg
pkgadd: ERROR: no packages were found in </var/tmp/dstreAAAz5aquw>
bash-3.2# pkgadd -d idsldap*
pkgadd: ERROR: no packages were found in </var/tmp/dstreAAAeeaavw>
I observed that if I give package name directly like
bash-3.2# pkgadd -d idsldap.wp63.pkg
The following packages are available:
1 IDSlwp63 IBM Directory Server - WhitePages
(sparc) 6.3.0.29
Select package(s) you wish to process (or 'all' to process all packages). (default: all) [?,??,q]:
So my question is
1. pkgadd -d idsldap* is a user error OR
2. pkgadd -d idsldap* is an error in pkgadd
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
More precisely, the pkgadd command expect a single name to follow -d. Using a wildcard will work if there is a single file matching idsldap*.pkg. If there is more than one, that is a syntax error.
On the other hand, pkgrm supports wildcards but expects package names, not file names so for example this command will remove all packages having a name starting with "IDSlw":
Code:
pkgrm "IDSlw*"
Note that the parameter should be quoted to prevent the shell to expand it in case files matching that pattern do exist in the current directory.
Thank you TB0ne and jlliagre for your replies.
I get that
With pkgadd -d is meant for device. Also solaris packaging can be of two types a. folder structure or b. pkg file.
If a package format of folder structure is used then -d will take parent folder of the package named folders. This method could take a wild char in place of package names (e.g.: pkgadd -d . *)
But we use a .pkg format files which must be used with -d flag itself - means the pkg file is the device itself, and it can not take a wild char. We should use full pkg file names with -d.
Thank you TB0ne and jlliagre for your replies.
I get that With pkgadd -d is meant for device. Also solaris packaging can be of two types a. folder structure or b. pkg file.
If a package format of folder structure is used then -d will take parent folder of the package named folders. This method could take a wild char in place of package names (e.g.: pkgadd -d . *)
But we use a .pkg format files which must be used with -d flag itself - means the pkg file is the device itself, and it can not take a wild char. We should use full pkg file names with -d.
No, the -d flag is for a device/directory, and *STILL* doesn't accept package-name wildcards. You can specify multiple input directories with a wildcard, but it will install all the packages beneath them. You can't specify file names with wildcards.
Again, read the man page, and if you feel that things should behave differently, then feel free to contact Oracle, and explain to them why you'd like the behavior changed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.