• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 503
  • Last Modified:

pkgadd -d /path



I get the following error message when I run pkgadd -d /path

pkgadd: error : no pkages were found.....


If I specifiy a file name like pkgadd -d /path/mypakagename1.local in this command then it works.

I have a list of packages that I woud like to have it install by runing one command.
0
raza
Asked:
raza
  • 2
  • 2
  • 2
  • +1
1 Solution
 
yuzhCommented:
you can do:

cd /path-to/
for pkg in * ; do
    pkgadd -d $pkg
done

or use a text file to put the package list in the file:
eg:
pkg1
pkg2

then do:
for pkg in `cat mylist`
   pkgadd -d $pkg
done
   
0
 
razaAuthor Commented:
This will work if I just neeh to untar or anything else like that.

when you run pkgadd -d command it ask you if I need to install all package or select a number.

I thought it should read all the package from the  directory and then allow me to select all or one.
0
 
yuzhCommented:
>>I thought it should read all the package from the  directory and then allow me to select all or one.

You need to write a script to do the job. You can post another question in:
http://www.experts-exchange.com/Programming/Programming_Platforms/Unix_Programming/

See if any experts have time to write one for you.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
sugarfreelessCommented:
try pkgadd -d .
0
 
sugarfreelessCommented:
while in the dir with all the pkg's that is
0
 
razaAuthor Commented:

I already tried this command but it did not find any package. but if specify a file like pkgadd -d filename then it works.


0
 
XoFCommented:
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: yuzh

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

-XoF-
EE Cleanup Volunteer
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 2
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now