Search Results

Search: Posts Made By: Insight
36,749
Posted By Insight
I finally found the solution to this problem by...
I finally found the solution to this problem by doing a simple 'trick'.

pkgadd has an -a option which allows to use your own admin file to control the process. The format of this file is similar...
36,749
Posted By Insight
I think you got it wrong :) I need to use...
I think you got it wrong :)

I need to use both pkgrm and pkgadd. pkgrm works fine if i use
yes | pkgrm $PACKAGE (without echo)

The problem is with the pkgadd because the first answer...
36,749
Posted By Insight
I checked the link you sent me. The pkgrm...
I checked the link you sent me.

The pkgrm works fine if I use "yes | pkgrm [package-name]" because all the answers should be 'y'.

However pkgadd doesn't work because the first answer should...
36,749
Posted By Insight
I tried using the -n option but this only...
I tried using the -n option but this only bypasses the first question which is:

"Do you want to remove this package? [y,n,?,q]"

-n just automates this question and after that I get the second...
36,749
Posted By Insight
Automate Script using pkgrm/pkgadd commands
This is my first post so hello to all of you!

I have a script in bash-3.00 that needs to execute the following:

pkgrm [package-name] (to remove an existing package)
pkgadd -d [package-path]...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 06:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy