LinuxQuestions.org
Visit Jeremy's Blog.
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 03-01-2020, 08:43 AM   #46
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware AArch64
Posts: 1,043

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665

Quote:
Originally Posted by chrisretusn View Post
Odd, I'm using "slackpkg - version 2.84.0_beta6" when we go to beta8?

'slackpkg -onoff=off upgrade-all' works here. Tested with slackpkg+ and without slackpkg+

Perhaps it be a Slackware ARM issue.
Whether the '-onoff' parameter works or not is irrelevant because it's working and perfectly, if you interprited my post correctly.

There is no Slackware ARM issue. It's an omission on the man page. The '-onoff' parameter used to feature on the 'man slackpkg' page but now it doesn't. So, how do users know about this function when it's not documented? This is the point I wish to be realised.

Last edited by Exaga; 03-01-2020 at 08:44 AM.
 
Old 03-01-2020, 08:46 AM   #47
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by Exaga View Post
Whether the '-onoff' parameter works or not is irrelevant because it's working and perfectly, if you interprited my post correctly.

There is no Slackware ARM issue. It's an omission on the man page. The '-onoff' parameter used to feature on the 'man slackpkg' page but now it doesn't. So, how do users know about this function when it's not documented? This is the point I wish to be realised.

Try: man slackpkg.conf

You'll find ONOFF and other config options there.
 
Old 03-01-2020, 09:08 AM   #48
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware AArch64
Posts: 1,043

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
Quote:
Originally Posted by Chuck56 View Post
Try: man slackpkg.conf

You'll find ONOFF and other config options there.
Chucky dear, I'm NOT looking for a solution. Hahahahahahaha

My post was directed to Robby who asked users to verify the software. It's up to him whether to update the man pages, or not. I'm just reporting what I've found.
 
Old 03-01-2020, 10:10 AM   #49
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by Exaga View Post
Chucky dear, I'm NOT looking for a solution. Hahahahahahaha

My post was directed to Robby who asked users to verify the software. It's up to him whether to update the man pages, or not. I'm just reporting what I've found.
I'm not your dear. No need for anybody to update the man pages as I pointed out.

Code:
NAME
       slackpkg - Automated tool for managing Slackware Linux packages
...

SEE ALSO
       slackpkg.conf(5), installpkg(8), upgradepkg(8), explodepkg(8), makepkg(8), pkgtool(8).
Note the reference to slackpkg.conf(5).

Peace out!
 
Old 03-01-2020, 10:29 AM   #50
magicm
Member
 
Registered: May 2003
Distribution: Slackware
Posts: 237

Rep: Reputation: 152Reputation: 152
Steadfast 14.2 user here - watching and waiting for -current to transition to -stable .....


re: -onoff and man pages
slackpkg version 2.82.1 had the same setup:
man slackpkg did _not_ mention onoff
man slackpkg.conf did mention onoff


Don't see a reason to change that (although not terribly against it, either; just seems superfluous)
 
1 members found this post helpful.
Old 03-01-2020, 10:45 AM   #51
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,560

Original Poster
Rep: Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354
Quote:
Originally Posted by allend View Post
I note that 2.84.0-beta8 does not include this suggestion.
I don't think I like that change - this PAM addition is enough of a corner case, *and* as others have mentioned, the operation is adequately handled otherwise.

This is admittedly not entirely rational, but /testing is primarily a -current thing, and I'd like to think that -current users are able to adjust to the "once in a blue moon" occasion like this :-)
 
Old 03-01-2020, 10:47 AM   #52
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,560

Original Poster
Rep: Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354
Quote:
Originally Posted by Exaga View Post
Testing "slackpkg - version 2.84.0_beta8" and it seems to be working great, thus far. Thanks for the new software and the opportunity to test it.

Only thing I've noticed is literary. In the man page, it appears that the 'onoff' function is no longer featured, yet still works like a boss:

Code:
~# slackpkg -onoff=off upgrade-all
~# slackpkg -onoff=off install-new
I use the '-onoff=off' parameter a lot. It's very useful for my 'slackpkg' requirements.

[EDIT] ^^^ This is on Slackware ARM -current btw.
Since this is documented in slackpkg.conf(5) and is likely where you saw it previously, I think we'll leave it alone as "good enough" for now.
After I broke things at beta7, I'm going to be very resistant to further changes :-)
 
Old 03-01-2020, 10:48 AM   #53
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,560

Original Poster
Rep: Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354Reputation: 1354
Quote:
Originally Posted by magicm View Post
Steadfast 14.2 user here - watching and waiting for -current to transition to -stable .....


re: -onoff and man pages
slackpkg version 2.82.1 had the same setup:
man slackpkg did _not_ mention onoff
man slackpkg.conf did mention onoff


Don't see a reason to change that (although not terribly against it, either; just seems superfluous)
I'm just glad to see you're still on Slackware - I thought you'd moved on to other pastures :-)
 
Old 03-01-2020, 02:06 PM   #54
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 983

Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
Quote:
After I broke things at beta7, I'm going to be very resistant to further changes :-)
it's a beta, may be happens


Quote:
It's reverted. I don't like the inconsistency with ROOT definitions but I'm not going to break our upstream either :-)
Unless something major comes along and/or some very trivial things occur, consider 2.84.0_beta8 to be what will hopefully become 2.84.0
well, but now persist the blacklist inconsistence mentioned at #34 that need to be fixed
Code:
# ROOT=/var/cache/lxc/slackware/rootfs-current-x86_64/ CONF=/var/cache/lxc/slackware/slackpkg-conf slackpkg search aaa_base

grep: /var/cache/lxc/slackware/rootfs-current-x86_64///var/cache/lxc/slackware/slackpkg-conf/blacklist: No such file or directory
Looking for aaa_base in package list. Please wait... DONE

Code:
core-functions.sh:595:  grep -vE "(^#|^[[:blank:]]*$)" ${ROOT}/${CONF}/blacklist | \
core-functions.sh:647:                                  grep -qx "${i}" ${CONF}/blacklist || LIST="$LIST $i"
core-functions.sh:1235:                 grep -qx "${i}" ${CONF}/blacklist && continue
core-functions.sh:1283: echo $SHOWLIST | tr ' ' "\n" >> ${ROOT}/${CONF}/blacklist
core-functions.sh:1286:If you want to remove those packages, edit ${CONF}/blacklist.\n"

slackpkg:469:                   grep -e "^\([a-z]\)" $CONF/blacklist | $MORECMD
all ${ROOT}/${CONF} so should be ${CONF}


Quote:
IMHO is not essential to enforce $CONF under $ROOT as it can specified manually at the same location (CONF=/chroot/etc/slackpkg) as needed with losing no functionality.
Yes.
Sometime may be useful (at install time in this cases) that $CONF is out of $ROOT.
After the install may be useful to use $ROOT/etc/slackpkg , so in lxc container cache:
ROOT=/var/cache/lxc/slackware/rootfs-current-x86_64/ CONF=/var/cache/lxc/slackware/slackpkg-conf slackpkg
this may be used in other use cases (a chroot installation or a second partition mounted or other, where I want to install a package).
ROOT=/chroot CONF=/chroot/etc/slackpkg slackpkg ....
but I admit that the double $ROOT specify is not intuitive.

a solution may be that
ROOT=/chroot slackpkg ...
may use /chroot/etc/slackpkg as configuration, /chroot/var/lib/slackpkg for workdir, etc, and
ROOT=/chroot CONF=/myconf slackpkg ...
may use /chroot/var/lib/slackpkg for workdir and /myconf as configuration
also in an installed lxc container (that no longer uses /var/cache/lxc/slackware/slackpkg-conf)
ROOT=/var/lib/lxc/test7/rootfs slackpkg ...

/usr/sbin/slackpkg:55
Code:
if [ -z "$CONF" ];then
  CONF=/etc/slackpkg
  if [ ! -z "$ROOT" ];then
    CONF=$ROOT/$CONF
  fi
fi
#CONF=${CONF:-/etc/slackpkg}
 
Old 03-01-2020, 02:13 PM   #55
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,129

Rep: Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202
Quote:
Originally Posted by zerouno View Post
well, but now persist the blacklist inconsistence mentioned at #34 that need to be fixed
Code:
# ROOT=/var/cache/lxc/slackware/rootfs-current-x86_64/ CONF=/var/cache/lxc/slackware/slackpkg-conf slackpkg search aaa_base

grep: /var/cache/lxc/slackware/rootfs-current-x86_64///var/cache/lxc/slackware/slackpkg-conf/blacklist: No such file or directory
Looking for aaa_base in package list. Please wait... DONE
I think this happens because of this commit

https://github.com/rworkman/slackpkg...419c2de6d04954


Quote:
Originally Posted by zerouno View Post
Sometime may be useful (at install time in this cases) that $CONF is out of $ROOT.
After the install may be useful to use $ROOT/etc/slackpkg , so in lxc container cache:
ROOT=/var/cache/lxc/slackware/rootfs-current-x86_64/ CONF=/var/cache/lxc/slackware/slackpkg-conf slackpkg
this may be used in other use cases (a chroot installation or a second partition mounted or other, where I want to install a package).
ROOT=/chroot CONF=/chroot/etc/slackpkg slackpkg ....
but I admit that the double $ROOT specify is not intuitive.
a solution may be that
ROOT=/chroot slackpkg ...
may use /chroot/etc/slackpkg as configuration, /chroot/var/lib/slackpkg for workdir, etc, and
ROOT=/chroot CONF=/myconf slackpkg ...
may use /chroot/var/lib/slackpkg for workdir and /myconf as configuration
also in an installed lxc container (that no longer uses /var/cache/lxc/slackware/slackpkg-conf)
ROOT=/var/lib/lxc/test7/rootfs slackpkg ...

/usr/sbin/slackpkg:55
Code:
if [ -z "$CONF" ];then
  CONF=/etc/slackpkg
  if [ ! -z "$ROOT" ];then
    CONF=$ROOT/$CONF
  fi
fi
#CONF=${CONF:-/etc/slackpkg}
I'm sorry but I don't understand what you mean by that: if you have chroots or containers the normal use case is to execute slackpkg from the inside; if you need to do it from the outside you do it via the chroot command or lxc-attach, for example.

Last edited by ponce; 03-01-2020 at 02:25 PM.
 
Old 03-01-2020, 02:55 PM   #56
zerouno
Member
 
Registered: Oct 2009
Location: Italy
Distribution: Slackware
Posts: 983

Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
$ROOT may be used not only for lxc.

Consider this use case:
1) slackware installed on usbdisk (or pendrive) configured in dhcp at myhome network
2) something broke the disk so it not boot and you need to reinstall some package to fix
3) since it not boot I mount the usbdisk on my pc where I work
4) this network need a proxy

to reinstall the package I need (at least)
Code:
# mount -o bind /proc /mnt/usb/proc
# mount -o bind /dev /mnt/usb/dev
# chroot /mnt/usb
# echo '192.168.1.1' > /etc/resolv.conf
# export http_proxy=myproxy:8080
# slackpkg reinstall package
# exit
# umount /mnt/usb/dev
# umount /mnt/usb/proc
(well, I may need more things)
or simply
Code:
# ROOT=/mnt/usb slackpkg reinstall package
I think may be other cases where ROOT= may be better or fastest than chroot.
 
Old 03-01-2020, 05:46 PM   #57
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware AArch64
Posts: 1,043

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
Quote:
Originally Posted by magicm View Post
re: -onoff and man pages
slackpkg version 2.82.1 had the same setup:
man slackpkg did _not_ mention onoff
man slackpkg.conf did mention onoff

Don't see a reason to change that (although not terribly against it, either; just seems superfluous)
Yeah, you're right. It's quite a few years since I read the slackpkg man pages and my memory isn't what it used to be. Apologies.

Quote:
Originally Posted by rworkman View Post
Since this is documented in slackpkg.conf(5) and is likely where you saw it previously, I think we'll leave it alone as "good enough" for now.
After I broke things at beta7, I'm going to be very resistant to further changes :-)
Yeah, you're right. It's quite a few years since I read the slackpkg man pages and my memory isn't what it used to be. Apologies.
 
Old 03-01-2020, 09:21 PM   #58
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 2,987

Rep: Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556
Quote:
Originally Posted by Exaga View Post
Whether the '-onoff' parameter works or not is irrelevant because it's working and perfectly, if you interprited my post correctly.

There is no Slackware ARM issue. It's an omission on the man page. The '-onoff' parameter used to feature on the 'man slackpkg' page but now it doesn't. So, how do users know about this function when it's not documented? This is the point I wish to be realised.
Yes I did misread your post. Thanks for the clarification.

The users will discover this feature the same way I did, you did, and many others did. Reading the slackpkg.conf man page. I don't recall seeing the '-onoff' parameter featured on the slackpkg man page.

Last edited by chrisretusn; 03-02-2020 at 08:49 AM.
 
Old 03-02-2020, 06:31 AM   #59
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,382

Rep: Reputation: 2761Reputation: 2761Reputation: 2761Reputation: 2761Reputation: 2761Reputation: 2761Reputation: 2761Reputation: 2761Reputation: 2761Reputation: 2761Reputation: 2761
Quote:
I don't think I like that change - this PAM addition is enough of a corner case, *and* as others have mentioned, the operation is adequately handled otherwise.

This is admittedly not entirely rational, but /testing is primarily a -current thing, and I'd like to think that -current users are able to adjust to the "once in a blue moon" occasion like this :-)
OK - But I will retain my patch locally as "blue moons" do re-occur and I see no reason for the usual 'slackpkg update; slackpkg install-new; slackpkg upgrade-all' dance not to work correctly.
 
Old 06-12-2020, 11:51 AM   #60
xpetrl
LQ Newbie
 
Registered: Jun 2020
Location: swiss
Posts: 5

Rep: Reputation: Disabled
You can add a Swiss mirror to mirrors-x86*.sample, it replace the outdated mirror.switch.ch which is listed in mirrors of the slackpkg stable.
mirror.init7.net is listed as alternate mirror on mirror.switch.ch website, https://mirror.switch.ch/
Quote:
diff a/mirrors-x86.sample b/mirrors-x86.sample
163a164,165
> # SWITZERLAND (CH)
> # https://mirror.init7.net/slackware/slackware-14.2/
327a330,331
> # SWITZERLAND (CH)
> # https://mirror.init7.net/slackware/slackware-current/
diff a/mirrors-x86_64.sample b/mirrors-x86_64.sample
161a162,163
> # SWITZERLAND (CH)
> # https://mirror.init7.net/slackware/slackware64-14.2/
323a326,327
> # SWITZERLAND (CH)
> # https://mirror.init7.net/slackware/slackware64-current/
 
2 members found this post helpful.
  


Reply

Tags
slackpkg, testing



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
having trouble after upgrading 14.1 slackware using slackpkg and slackpkg+ [solved] slackartist Slackware 1 12-28-2015 07:28 AM
[SOLVED] Slackpkg, Slackpkg Plus, Slackware 14.1 x86_64 install.log delay or slow to write bamunds Slackware 7 04-22-2014 11:12 AM
Failed connect monit-5.5-1 to M/monit 3.0_beta1 shams2222 Linux - Server 2 06-16-2013 01:06 PM
[SOLVED] typos in latest /etc/slackpkg/mirrors(.new) [slackpkg-2.82.0-noarch-8.tgz] wailingwailer Slackware 4 09-22-2012 04:04 AM
Slackpkg: missing something in /usr/libexec/slackpkg/functions.d/dialog-functions.sh michelino Slackware 4 03-20-2007 12:22 PM

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

All times are GMT -5. The time now is 05:26 AM.

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