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.
razaAsked:
Who is Participating?
 
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
 
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
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.