LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   (Slack) Attitude : New binary package mangement tool for Slackware (https://www.linuxquestions.org/questions/slackware-14/slack-attitude-new-binary-package-mangement-tool-for-slackware-4175641102/)

bassmadrigal 12-12-2018 03:37 PM

Quote:

Originally Posted by linuxxer (Post 5933997)
@bassmadrigal

I tried to follow Slackware package naming convention (like tag name) and Official Slackware repository structure.

Please Suggest.....

I'm not sure what to suggest without knowing how your program handles repos. If you look at slackpkg for an example, it has you list the specific repo containing the specific versions of programs you want (so you'd list a repo for 64bit 14.2). And it lets you set priority of mirrors. See this blog entry by Alien Bob for more details.

Regular slackpkg has support for the various additional folders in a stock mirror that may contain files like extra/, patches/, pasture/, and testing/. This allows you to place priority of one specific repo, like testing/ over patches/, if you want to ensure you don't accidentally overwrite packages.

You could even add a list where you can prioritize certain packages with certain repos, like if you want to use the alsa-only versions out of extra/, but don't want any other programs in there, you could have extra/ as a lower priority than the main repo (and patches) and only specify certain packages and the repos you'd like to prioritize them from.

There's lots of ways to handle it, you just need to decide how you want to. Depending on how it is handled may determine whether it is a useful program for many or only a few.

linuxxer 12-13-2018 09:24 PM

Quote:

Originally Posted by DaBrze (Post 5936184)
Code:

warning: attitude-installer: kernel-generic-4.19.8-x86_64-1: : Package NOT Found.

This error is generated because package may not be downloaded (NOT available) in /var/cache/packages/ directory.

Please check.

Thanks for trying the package and reporting the issue.

linuxxer 12-13-2018 09:32 PM

Quote:

Originally Posted by bassmadrigal (Post 5936413)
You could even add a list where you can prioritize certain packages with certain repos

I am working on it.
During the development I found that, NOT all repositories follow the official Slackware repository similar structure because of this reason I have not implemented priority to sub-branches. I want to handle all the repository in same way.
But each repository had assigned different priority.

Thanks

linuxxer 12-13-2018 09:35 PM

Slackers,

Now working on assigning priority to sub-branches and multi-lib functionality.

Thanks

linuxxer 12-23-2018 05:37 AM

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

NAME=linuxxlab
IDNUM=431943
DESC="Linuxxlab SlackBuilds repository"
SOURCE=ftp://krishna.linuxxlab.org/slackware/slackbuilds
ARCH=x86_64
TAG=_Lab
PRIORITY=85
CHECKGPG=on
CHECKMD5=on

NAME=alien
IDNUM=431950
DESC="Eric's Official repository"
SOURCE=http://bear.alienbase.nl/mirrors/people/alien/sbrepos/14.2/x86_64
CHANGELOG=http://bear.alienbase.nl/mirrors/people/alien/sbrepos
ARCH=x86_64
TAG=alien
PRIORITY=80
CHECKGPG=on
CHECKMD5=on

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

NAME=alien-ktown
IDNUM=429398
DESC="Eric's KDE Restricated repository"
SOURCE=http://bear.alienbase.nl/mirrors/alien-kde/14.2/5/x86_64
CHANGELOG=http://bear.alienbase.nl/mirrors/people/alien/sbrepos
ARCH=x86_64
TAG=alien
PRIORITY=72
CHECKGPG=on
CHECKMD5=on

NAME=alien-restricted
IDNUM=431948
DESC="Eric's Restricated repository"
SOURCE=http://bear.alienbase.nl/mirrors/people/alien/restricted_sbrepos/14.2/x86_64
CHANGELOG=http://bear.alienbase.nl/mirrors/people/alien/sbrepos
ARCH=x86_64
TAG=alien
PRIORITY=70
CHECKGPG=on
CHECKMD5=on

NAME=rlworkman
IDNUM=431938
DESC="Rlworkman's repositrory"
SOURCE=http://rlworkman.net/pkgs/14.2 x86_64
ARCH=x86_64
TAG=_rlw
PRIORITY=50
CHECKGPG=on
CHECKMD5=on

NAME=slackonly
IDNUM=431939
DESC="SlackOnly Repository"
SOURCE=https://slackonly.com/pub/packages/14.2-x86_64
ARCH=x86_64
TAG=_slonly
PRIORITY=40
CHECKGPG=on
CHECKMD5=on

NAME=msb
IDNUM=431937
DESC="MATE Slack Build"
SOURCE=http://slackware.uk/msb/14.2/latest/x86_64 base deps extra
ARCH=x86_64
TAG=_msb
PRIORITY=30
CHECKGPG=on
CHECKMD5=on

linuxxer 12-23-2018 05:54 AM

Slackers,

I am working complete priority based package management tool plus multilib functionality and which will also work with the alien repository.

Please check the above configuration changes.

As per above changes I am successfully able to collect the repository data, It means attitude update command.

In order to work with alien multiple repositories I have added IDNUM configuration.

To enable multilib functionality I have configured alien repository two time one with alien tag and another with compat32 tag.

I am also working on priority assignment for sub-braches so that It will better work with Slackware official repositories.

I trying to implement complete priority based tools. It means as per priority packages get selected for upgrade.
If priority get changed then package will be upgraded from another package source.

It will completely changes the code.

Suggestions are welcome.

Thanks

linuxxer 12-23-2018 06:26 AM

Slackers,

It will be completely priority based package management system, not TAG based.

Need to be discuss......

Thanks

linuxxer 12-23-2018 07:53 AM

Slackers,

I am thinking about handling alien multiple repository as extend branches.
And allow override using preference rules which are added into package information which stored in /var/log/packages.

Thanks

linuxxer 01-04-2019 08:34 AM

Slackers,

There is an update, call for testing.
Please check for update(Slack) attitude.

Recently I have added multilib functionality, and added support for aliens multiple repository which having same TAG.
Added priority handling for different branches in Slackware official repository structure.


NOTE : This is completely priority based system.

To verify, change the SOURCE PRIORITY and run upgrade-all command.
Packages get selected as per new configuration.

Few changes in configuration file:
added IDNUM= field to identify multiple repository those uses same tags.
For proper functioning, never changes this field after assignment.
Any interger number can be used for this field.
I used configuration file inode number for this field.

And for multilib functionality, added ARCH= field.

This new release uses gdbm for maintaining package information.
Now this tool uses two databases one is text file and gdbm database (which are imported from text files).
New functionality works on gdbm database.
I am working on to remove text file functionality.

Now kernel packages are selected to INSTALL (NOT UPGRADE) in upgrade-all command.

As per recent changes use .x86 suffix to install 32 bit packages on 64 bit system.
for example:

Quote:

attitude install less.x86
This is alpha release, so few messages are enabled for testing purpose.


Here is my attitude repolist output:
Quote:

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

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

NAME=alien
IDNUM=431936
DESC="Eric's Official repository"
SOURCE=http://bear.alienbase.nl/mirrors/people/alien/sbrepos/14.2/x86_64
CHANGELOG=http://bear.alienbase.nl/mirrors/people/alien/sbrepos
TAG=alien
PRIORITY=80
CHECKGPG=on
CHECKMD5=on

NAME=alien-compat
IDNUM=431943
DESC="Eric's multilib repository"
SOURCE=http://bear.alienbase.nl/mirrors/people/alien/multilib/14.2 slackware64-compat32
TAG=compat32
PRIORITY=76
CHECKGPG=on
CHECKMD5=on

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

NAME=alien-ktown
IDNUM=429454
DESC="Eric's KDE Restricated repository"
SOURCE=http://bear.alienbase.nl/mirrors/alien-kde/14.2/5/x86_64
CHANGELOG=http://bear.alienbase.nl/mirrors/people/alien/sbrepos
TAG=alien
PRIORITY=72
CHECKGPG=on
CHECKMD5=on

NAME=alien-restricted
IDNUM=429451
DESC="Eric's Restricated repository"
SOURCE=http://bear.alienbase.nl/mirrors/people/alien/restricted_sbrepos/14.2/x86_64
CHANGELOG=http://bear.alienbase.nl/mirrors/people/alien/sbrepos
TAG=alien
PRIORITY=70
CHECKGPG=on
CHECKMD5=on

NAME=rlworkman
IDNUM=431937
DESC="Rlworkman's repositrory"
SOURCE=http://rlworkman.net/pkgs/14.2 x86_64
TAG=_rlw
PRIORITY=50
CHECKGPG=on
CHECKMD5=on

NAME=slackonly
IDNUM=431938
DESC="SlackOnly Repository"
SOURCE=https://slackonly.com/pub/packages/14.2-x86_64
TAG=_slonly
PRIORITY=40
CHECKGPG=on
CHECKMD5=on

NAME=msb
IDNUM=431947
DESC="MATE Slack Build"
SOURCE=http://slackware.uk/msb/14.2/latest/x86_64
TAG=_msb
PRIORITY=30
CHECKGPG=on
CHECKMD5=on

NOTE : search, file-search, info functionality is broken and replace is not required. I am working on it.

Suggestion are welcome.

Thanks

linuxxer 01-25-2019 09:28 PM

Slackers,

There is an update, please check for update.

Just now I finished the search and file-search implementation, but browse is broken (I am working on it).

Call for testing.

Suggestions and feedback is welcome.

Thanks

linuxxer 01-25-2019 09:34 PM

Slackers,

NOW Logging in enabled.

By default LOG_USER and LOG_INFO is used for syslogd logging.
And /var/log/attitude.log file used to store local loggs.

Thanks

linuxxer 02-15-2019 11:45 AM

Slackers,

Here is an update, please check https://sourceforge.net/projects/slack-attitude/.

Added Package TAG support. Try search.

browse functionality is still broken. I am working on it.

Call for testing. Suggestions are welcome.

Thanks

linuxxer 02-15-2019 11:47 AM

Slacker,

NOTE: Please DELETE all directories in /var/lib/attitude, before running update.

Thanks

linuxxer 02-16-2019 04:21 AM

Slacker,

The browse issue (which is known issue) is resolved.

Please check (Slack) Attitude for an update.

Thanks

linuxxer 02-16-2019 05:30 AM

Slackers,

Please try ncurses mode with nattitude. For example:
Code:

nattitude browse
Thanks


All times are GMT -5. The time now is 03:14 PM.