LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-21-2021, 05:02 PM   #16
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,407
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514

Quote:
Originally Posted by Didier Spaier View Post
As an aside if the syntax differs between the tools shipped in the pkgtools package that's probably just because they were not initially written at the same time. Anyway change this syntax and 'normalize' it now that so meany people use it since a long time, maybe included in scripts... Aesthetically that could be a good idea, but I doubt that Patrick would do it.
The only secure path I can imagine to deal with such cases would be to have both syntax avaible in all of the pkgtools scripts.

I may be confident enough to submit a patch... for next release to come (16?) :-P
 
Old 04-21-2021, 07:11 PM   #17
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by enorbet View Post
I still have no idea how "--r otherroot" should work or even if it actually does and I find it terribly illogical.
I am not sure why you have so much trouble with this. As has already been stated, upgradepkg does not have a "--root /otherroot" option, only installpkg does. In installpkg those two commands are interchangeable:

Code:
installpkg --root /otherroot package
ROOT=/otherroot installpkg package
If you use both of them
Code:
ROOT=/otherroot installpkg --root /otherroot package
then "--root /otherroot" will take precedence over "ROOT=/otherroot".

Here is the corresponding section in installpkg:
Code:
146 # Parse options:
147 MODE=install # standard text-mode
148 while [ 0 ]; do
149   if [ "$1" = "-warn" -o "$1" = "--warn" ]; then
150     MODE=warn
151     shift 1
152   elif ...

...

184   elif [ "$1" = "-root" -o "$1" = "--root" ]; then
185     if [ "$2" = "" ]; then
186       usage
187       exit
188     fi
189     ROOT="$2"
190     shift 2
All this option does is to set the ROOT variable, which you can also achieve by using "ROOT=/otherroot installpkg ..." in the first place.

HTH.

PS:
It should be "--root /otherroot" or "-root /otherroot" instead of "--r /otherrroot".
 
1 members found this post helpful.
Old 04-22-2021, 11:07 PM   #18
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,797

Original Poster
Rep: Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436Reputation: 4436
Thanks crts, but I thought I explained this and also that even though I may have been overthinking the process, effectively "tilting at windmills", I came to a working conclusion exactly as you noted above and also noticed that when root is redirected, the process can be watched in action.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] upgradepkg, post-install, but not rebooted, hardcoded /sbin/installpkg in upgradepkg... possible feature request/improvement? slvr32 Slackware 11 05-05-2021 04:35 AM
installpkg has --root switch, removepkg & upgradepkg don't RandomTroll Slackware 1 06-20-2018 07:21 AM
[SOLVED] ROOT=XXXXX upgradepkg silent failure burdi01 Slackware 2 02-07-2015 03:39 AM
[SOLVED] UPGRADEPKG doesn't overwrite and replace old libraries and links? Holering Slackware 7 01-26-2014 06:33 AM
How to use rsync and upgradepkg... halo14 Slackware 5 01-04-2005 07:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration