LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-01-2020, 03:13 AM   #91
linuxxer
Member
 
Registered: Apr 2011
Location: I have my own planet
Distribution: SlackwareŽ
Posts: 229

Original Poster
Rep: Reputation: Disabled

Slackers,

Here is an update, please check (Slack) Attitude.

@jheengut, @bassmadrigal
Thanks for the suggestions.

Please check...
 
Old 06-22-2020, 11:26 PM   #92
linuxxer
Member
 
Registered: Apr 2011
Location: I have my own planet
Distribution: SlackwareŽ
Posts: 229

Original Poster
Rep: Reputation: Disabled
Slackers,

Now (Slack) Attitude is rename to Packtools.

Command attitude rename to packtool.

Please check.

Thanks
 
Old 07-09-2020, 10:55 AM   #93
DaBrze
LQ Newbie
 
Registered: Mar 2018
Location: Lodz, PL
Distribution: Slackware
Posts: 15

Rep: Reputation: Disabled
Thumbs up

Quote:
Originally Posted by linuxxer View Post
Slackers,

Now (Slack) Attitude is rename to Packtools.

Command attitude rename to packtool.

Please check.

Thanks

Look in the /etc/packtools/triggers directory. In the script files there are old $ATTITUDE_LIBEXECDIR vars. Should be exchanged by $PACKTOOLS_LIBEXECDIR I hope.
 
Old 07-09-2020, 11:13 PM   #94
linuxxer
Member
 
Registered: Apr 2011
Location: I have my own planet
Distribution: SlackwareŽ
Posts: 229

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by DaBrze View Post
Look in the /etc/packtools/triggers directory. In the script files there are old $ATTITUDE_LIBEXECDIR vars. Should be exchanged by $PACKTOOLS_LIBEXECDIR I hope.
Thanks for reporting the bug. I will check and update.
 
Old 07-10-2020, 09:57 AM   #95
linuxxer
Member
 
Registered: Apr 2011
Location: I have my own planet
Distribution: SlackwareŽ
Posts: 229

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by DaBrze View Post
Look in the /etc/packtools/triggers directory. In the script files there are old $ATTITUDE_LIBEXECDIR vars. Should be exchanged by $PACKTOOLS_LIBEXECDIR I hope.
Changes are done. Please check.

Can't avoid the silly mistakes.

Thanks
 
Old 08-28-2020, 03:43 AM   #96
DaBrze
LQ Newbie
 
Registered: Mar 2018
Location: Lodz, PL
Distribution: Slackware
Posts: 15

Rep: Reputation: Disabled
Today I made deep test of packtool (1.0.0a05) to update my qemu slackware64-current system including the kernel.

The steps are as follow:

1) # packtool update - OK.
2) # packtool upgrade-all - All packages have been upgraded, new kernel-generic, kernel-huge, kernel-modules and kernel-source were installed in parallel to the old as expected.
3) # packtool trigger make-initrd - OK
4) # packtool trigger grub-mkconfig - OK
5) The system has successfully rebooted into the new kernel - OK.
6) The system cleaning - failed.

See my steps below.

Quote:
# root@slack64-current:~# packtool clean-system

Nothing to do... Exiting
but old kernel is still installed:

Quote:
# root@slack64-current:~# ls /var/lib/pkgtools/packages/*kernel*5.4*
/var/lib/pkgtools/packages/kernel-generic-5.4.59-x86_64-1
/var/lib/pkgtools/packages/kernel-generic-5.4.61-x86_64-1
/var/lib/pkgtools/packages/kernel-headers-5.4.61-x86-1
/var/lib/pkgtools/packages/kernel-huge-5.4.59-x86_64-1
/var/lib/pkgtools/packages/kernel-huge-5.4.61-x86_64-1
/var/lib/pkgtools/packages/kernel-modules-5.4.59-x86_64-1
/var/lib/pkgtools/packages/kernel-modules-5.4.61-x86_64-1
/var/lib/pkgtools/packages/kernel-source-5.4.59-noarch-1
/var/lib/pkgtools/packages/kernel-source-5.4.61-noarch-1
'packtool' doesn't see it:

Quote:
# root@slack64-current:~# cat /var/lib/packtools/PACKAGES.TXT | grep 5.4 | sed -n '/txz/p' | grep kernel
PACKAGE NAME: kernel-generic-5.4.61-x86_64-1.txz
PACKAGE NAME: kernel-headers-5.4.61-x86-1.txz
PACKAGE NAME: kernel-huge-5.4.61-x86_64-1.txz
PACKAGE NAME: kernel-modules-5.4.61-x86_64-1.txz
PACKAGE NAME: kernel-source-5.4.61-noarch-1.txz
so, 'packtool remove kernel-source' wants to remove the new kernel, unfortunately.

Removing the content of the /var/lib/packtools/ and rebuilding it with 'packtool update' didn't help.

Finally slackman removed old kernel:

Quote:
# root@slack64-current:~# slackman --remove /var/lib/pkgtools/packages/kernel-source-5.4.59-noarch-1
Total 1136 packages are installed, which provides 431344 files in 34101 directories.

Remove : kernel-source-5.4.59-noarch-1
but it didn't delete the empty, unneeded directories:

Quote:
# root@slack64-current:~# ls -ali /usr/src/
total 16
131129 drwxr-xr-x 4 root root 4096 sie 28 08:05 ./
131076 drwxr-xr-x 17 root root 4096 sie 25 19:32 ../
131166 lrwxrwxrwx 1 root root 12 sie 28 08:05 linux -> linux-5.4.61/
248501 drwxr-xr-x 7 root root 4096 sie 28 09:48 linux-5.4.59/
221268 drwxr-xr-x 24 root root 4096 sie 26 21:10 linux-5.4.61/

# root@slack64-current:~# ls -ali /usr/src/linux-5.4.59/
total 28
248501 drwxr-xr-x 7 root root 4096 Aug 28 09:48 ./
131129 drwxr-xr-x 4 root root 4096 Aug 28 08:05 ../
248506 drwxr-xr-x 2 root root 4096 Aug 28 09:48 Documentation/
255844 drwxr-xr-x 4 root root 4096 Aug 28 09:48 arch/
483997 drwxr-xr-x 3 root root 4096 Aug 28 09:48 include/
508357 drwxr-xr-x 3 root root 4096 Aug 28 09:48 scripts/
508573 drwxr-xr-x 3 root root 4096 Aug 28 09:48 tools/
My conclusion.

The 'packtool/packman' is handly tool, follows the native pkgtools rules, quite easy with operating, especially with handling the system check/info/upgrade. But it still needs some improvements with the system cleaning.

Last edited by DaBrze; 08-28-2020 at 03:45 AM.
 
Old 08-31-2020, 01:56 AM   #97
linuxxer
Member
 
Registered: Apr 2011
Location: I have my own planet
Distribution: SlackwareŽ
Posts: 229

Original Poster
Rep: Reputation: Disabled
@DaBrze,

Thanks for trying the tool and reporting the issue.

Code:
packtool clean-system
Packtool is designed such that it must remove all obsolete packages except the kernel-packages.

Currently, If user wants to remove kernel packages he must use slackman tool. And provide complete package name as argument.
Slackman is designed to handle kernel packages properly. But Packtool lacks this functionality. In the next release I will implement it into Packtool.

While deleting the packages, slackman only remove files that are provided by the package. Nothing more than this.
In case of kernel packages it does the same. To remove extra files manual efforts are required like scripting.
Or In future I will add option to handle these kernel files.
 
Old 09-03-2020, 07:42 AM   #98
walecha
Member
 
Registered: Jan 2010
Location: Malang, +62
Distribution: slackware
Posts: 95

Rep: Reputation: 18
Quote:
Originally Posted by linuxxer View Post
My attitude repolist
NAME=slackware
IDNUM=431940
DESC="Slackware Official Repository"
SOURCE=ftp://krishna.linuxxlab.org/slackware/slackware64-14.2 patches slackware64 extra testing
ARCH=x86_64
TAG=_slack
PRIORITY=99
CHECKGPG=on
CHECKMD5=on

NAME=slackware.x86
IDNUM=429434
DESC="Slackware Official Repository"
SOURCE=ftp://krishna.linuxxlab.org/slackware/slackware-14.2 patches slackware extra testing
ARCH=x86
TAG=_slack
PRIORITY=98
CHECKGPG=on
CHECKMD5=on

== snip ==
Does packtools support multiple source files or must it be a single file? For example /etc/sources/repo_A.cfg /etc/sources/repo_B.cfg.

Is there a way to add/change sources without having to use some text editor?

Last edited by walecha; 09-03-2020 at 07:48 AM. Reason: More question/request
 
Old 09-03-2020, 09:32 AM   #99
walecha
Member
 
Registered: Jan 2010
Location: Malang, +62
Distribution: slackware
Posts: 95

Rep: Reputation: 18
Packtools indeed support multiple configuration files. Please ignore my first question.

Tested packtools in my multilib system, this is what I got:

Code:
## file /etc/packtools/sources/multilib.cfg
NAME=multilib
IDNUM=5649
DESC="Alien Multilib"
SOURCE=http://192.168.1.15/ftp/alien/multilib current
CHANGELOG=http://192.168.1.15/ftp/alien/multilib
ARCH=x86_64
TAG=alien
PRIORITY=90
CHECKGPG=on
CHECKMD5=on

bash# packtool update     
multilib/ChangeLog.txt - 113KB                                                                                               
multilib/FILELIST.TXT - 880KB                                                                                                
multilib/CHECKSUMS.md5 - 755KB                                                                                               
multilib/current/MANIFEST.bz2 - 214KB                                                                                        
multilib/current/PACKAGES.TXT - 179KB                                                                                        
slackware/ChangeLog.txt - 923KB                                                                                              
Processing update files:
multilib Done.                                                                                                               
Merging databases

bash# packtool info gcc
PACKAGE NAME:  gcc-9.3.0-x86_64-2.txz
PACKAGE LOCATION:  ./slackware64/d
PACKAGE SIZE (compressed):  16796 K
PACKAGE SIZE (uncompressed):  97860 K
PACKAGE DESCRIPTION:
gcc (Base GCC package with C support)

GCC is the GNU Compiler Collection.

This package contains those parts of the compiler collection needed to
compile C code. Other packages add Ada, C++, Fortran, Go,
Objective-C, and BRIG support to the compiler core.
This is what my mirror of alien multilib/current repo looks like:
Code:
http://192.168.1.15/ftp/alien/multilib/current/
[DIR]	debug/	2017-05-07 20:37 	-
[DIR]	slackware64-compat32/	2015-04-22 13:39 	-
[TXT]	CHECKSUMS.md5	2020-08-02 17:39 	159K
[ ]	CHECKSUMS.md5.asc	2020-08-02 17:39 	163
[ ]	CHECKSUMS.md5.gz	2020-08-02 17:39 	37K
[ ]	CHECKSUMS.md5.gz.asc	2020-08-02 17:39 	163
[ ]	compat32-tools-3.9-noarch-16alien.lst	2020-06-24 15:26 	1.5K
[TXT]	compat32-tools-3.9-noarch-16alien.meta	2020-06-24 15:26 	574
[ ]	compat32-tools-3.9-noarch-16alien.tgz	2020-06-24 15:02 	14K
[ ]	compat32-tools-3.9-noarch-16alien.tgz.asc	2020-06-24 15:26 	163
[ ]	compat32-tools-3.9-noarch-16alien.tgz.md5	2020-06-24 15:26 	72
[TXT]	compat32-tools-3.9-noarch-16alien.txt	2020-06-24 15:26 	410
[TXT]	FILELIST.TXT	2020-08-02 17:39 	179K
[ ]	gcc-9.3.0_multilib-x86_64-2alien.lst	2020-04-02 17:24 	87K
[TXT]	gcc-9.3.0_multilib-x86_64-2alien.meta	2020-04-02 17:24 	480
[TXT]	gcc-9.3.0_multilib-x86_64-2alien.txt	2020-04-02 17:24 	310
[ ]	gcc-9.3.0_multilib-x86_64-2alien.txz	2020-04-02 17:00 	17M
[ ]	gcc-9.3.0_multilib-x86_64-2alien.txz.asc
== snip ==
You can see that compat32-tools and gcc multilib suite packages are in multilib/current, but packtools only listed packages inside multilib/current/slackware64-compat32, hence packtools reported my gcc is stock gcc not from multilib. FYI multilib packages using two TAG, alien for compat32-tools, gcc, and glibc, and compat32 for the rest. What tag should be used for multilib repo?

Last edited by walecha; 09-03-2020 at 09:46 AM. Reason: fix my mirror url
 
Old 09-06-2020, 07:26 AM   #100
linuxxer
Member
 
Registered: Apr 2011
Location: I have my own planet
Distribution: SlackwareŽ
Posts: 229

Original Poster
Rep: Reputation: Disabled
@walecha

Example Configuration file.

Code:
NAME=alien-compat32
IDNUM=431951
DESC="Eric's multilib compat32 repository"
SOURCE=http://bear.alienbase.nl/mirrors/people/alien/multilib/14.2 slackware64-compat32
ARCH=x86_64
TAG=compat32
PRIORITY=75
CHECKGPG=on
CHECKMD5=on

NAME=alien-multilib
IDNUM=429451
DESC="Eric's multilib repository"
SOURCE=http://bear.alienbase.nl/mirrors/people/alien/multilib 14.2
ARCH=x86_64
TAG=alien
PRIORITY=75
CHECKGPG=on
CHECKMD5=on
Also check PRIORITY value.

Thanks for trying the my tool.
 
Old 09-06-2020, 07:29 AM   #101
linuxxer
Member
 
Registered: Apr 2011
Location: I have my own planet
Distribution: SlackwareŽ
Posts: 229

Original Poster
Rep: Reputation: Disabled
Slackers,

After changing the priority of package source. (OR) /etc/packtools/preference file.

Please don't forget to run the command.

Quote:
# packtool --force update
Thanks.

Last edited by linuxxer; 09-06-2020 at 07:40 AM.
 
Old 09-09-2020, 12:45 PM   #102
jheengut
Member
 
Registered: Sep 2006
Location: Providence, Moka Mauritius
Distribution: Slackware, Lubuntu
Posts: 336
Blog Entries: 16

Rep: Reputation: 50
git clone is not working

this is not working

Code:
git clone "https://git.code.sf.net/p/packtools/git packtools-git"
Cloning into 'git packtools-git'...
fatal: repository 'https://git.code.sf.net/p/packtools/git packtools-git/' not found

svn checkout "https://svn.code.sf.net/p/packtools/svn/ packtools-svn"
svn: E170000: URL 'https://svn.code.sf.net/p/packtools/svn/%20packtools-svn' doesn't exist
from https://sourceforge.net/p/packtools/git/ref/master/
 
Old 09-10-2020, 02:23 AM   #103
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,018

Rep: Reputation: 987Reputation: 987Reputation: 987Reputation: 987Reputation: 987Reputation: 987Reputation: 987Reputation: 987
Hello,

Quote:
Originally Posted by jheengut View Post
this is not working

Code:
git clone "https://git.code.sf.net/p/packtools/git packtools-git"
Cloning into 'git packtools-git'...
fatal: repository 'https://git.code.sf.net/p/packtools/git packtools-git/' not found

svn checkout "https://svn.code.sf.net/p/packtools/svn/ packtools-svn"
svn: E170000: URL 'https://svn.code.sf.net/p/packtools/svn/%20packtools-svn' doesn't exist
from https://sourceforge.net/p/packtools/git/ref/master/
This does not work because of the quotes :

Code:
               v                                                      v
$ svn checkout "https://svn.code.sf.net/p/packtools/svn/ packtools-svn"
svn: E170000: URL 'https://svn.code.sf.net/p/packtools/svn/%20packtools-svn' doesn't exist
Remove them and this will work as expected (note that git repository is empty, but not svn) :
Code:
$ git clone https://git.code.sf.net/p/packtools/git packtools-git
Cloning into 'packtools-git'...
warning: You appear to have cloned an empty repository.


$ svn checkout https://svn.code.sf.net/p/packtools/svn/ packtools-svn
A    packtools-svn/packtools-1.0.0
A    packtools-svn/packtools-1.0.0/etc-current
A    packtools-svn/packtools-1.0.0/etc-current/sources
A    packtools-svn/packtools-1.0.0/etc-current/triggers
A    packtools-svn/packtools-1.0.0/etc-stable
A    packtools-svn/packtools-1.0.0/etc-stable/sources
A    packtools-svn/packtools-1.0.0/etc-stable/triggers
A    packtools-svn/packtools-1.0.0/src
A    packtools-svn/packtools-1.0.0/src/triggers
[....]
--
SeB
 
Old 09-10-2020, 07:32 AM   #104
linuxxer
Member
 
Registered: Apr 2011
Location: I have my own planet
Distribution: SlackwareŽ
Posts: 229

Original Poster
Rep: Reputation: Disabled
Slackers,

Please check now.

Quote:
$ svn checkout https://svn.code.sf.net/p/packtools/svn/ packtools-svn

$ git clone https://git.code.sf.net/p/packtools/git packtools-git
All repositories are updated.

Thanks
 
Old 03-19-2021, 12:39 AM   #105
linuxxer
Member
 
Registered: Apr 2011
Location: I have my own planet
Distribution: SlackwareŽ
Posts: 229

Original Poster
Rep: Reputation: Disabled
Packtools : New binary package mangement tool for Slackware

Slackers,

I take a break. But now I decided to continue the project. Not as full time developer. Because I had implemented minimum required functionality.

Now I had added MULTILIB_SUPPORT=disable. So it is required enable this feature in configuration file (/etc/packtools/config).

I like to know whether the package status based functionality is right. So that I can start further development in this direction.

Suggestions are welcome.

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
slackpkg++ : New Package management tool for Slackware (Under Development) linuxxer Slackware 50 01-04-2019 08:36 AM
[SOLVED] Binary package repositories for Slackware linuxxer Slackware 5 08-28-2017 02:10 PM
How to make a Slackware package out of a binary release of an application... Alexvader Slackware 8 11-23-2009 01:04 PM
Package Mangement Ideas fatsheep Linux From Scratch 1 06-10-2007 11:22 PM
MS starting to change his attitude (Open source MS tool) moeminhtun General 15 04-09-2004 10:40 AM

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

All times are GMT -5. The time now is 01:41 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