LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-25-2018, 06:26 AM   #1
linuxxer
Member
 
Registered: Apr 2011
Location: I have my own planet
Distribution: SlackwareŽ
Posts: 257

Rep: Reputation: Disabled
(Slack) Attitude : New binary package mangement tool for Slackware


Slackers,

I am now actively working on this tool.

I have tested the tool on Slackware64 14.2 installation.
attitude and nattitude works properly.

I have issue with ncurses package available on Slackware64 Current.
This issue because of different version of ncurses.
I am working on it.

** New Feactures added **

1 . (Optional) Priority based package source selection
I have added priorirty based package source selection.
During installation, packages are selected as per assigned priority (if any specific package source is not provided on command line).
It means, user can override on automatic package source selection.

2. Curl based package/update download.
I have implemented wrapper for curl to download the files.

3. ./configure script is added.

4. SlackBuild script is added.

** Fucture Plans **
1. Implement attitude-installer own package installation tool.

2. Multilib support.

** Known Issue **
1. I had recently finished the curl wrapper implemention.
Some times (not always) download may pause at end of download.
I am working on it.

2. nattitude : ncurses based interface get Segmentation fault error with latest ncurses package available on Slackware64 current.


Please try this tool at OWN risk.

Need suggestion for future developement.

Thanks for trying this tool.....
 
Old 10-25-2018, 06:27 AM   #2
linuxxer
Member
 
Registered: Apr 2011
Location: I have my own planet
Distribution: SlackwareŽ
Posts: 257

Original Poster
Rep: Reputation: Disabled
Link https://sourceforge.net/projects/slack-attitude/

Wiki https://sourceforge.net/p/slack-attitude/wiki/Home/

Last edited by linuxxer; 10-26-2018 at 05:31 AM.
 
Old 10-25-2018, 06:33 AM   #3
Lysander666
Senior Member
 
Registered: Apr 2017
Location: The Underearth
Distribution: Ubuntu, Debian, Slackware
Posts: 2,178
Blog Entries: 6

Rep: Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470Reputation: 2470
What does it do - could you summarise in a nutshell?

Also re your signature, I'm sure the UNIX Principle of KISS stands for "Keep it Simple, Stupid" rather than "Keep it Simple and Stupid".

Last edited by Lysander666; 10-25-2018 at 06:36 AM.
 
2 members found this post helpful.
Old 10-25-2018, 10:30 PM   #4
linuxxer
Member
 
Registered: Apr 2011
Location: I have my own planet
Distribution: SlackwareŽ
Posts: 257

Original Poster
Rep: Reputation: Disabled
Slackers,

(Slack) attitude able to handle multiple binary package repository with (optional) assigned priorities.

For example:
Code:
attitude install less
Above command will install less as assigned priority.

Code:
attitude install -s slackware less
attitude install slackware/less
Above two commands override on assigned priority and install the package from packager repository named 'slackware'

Once package get installed, same repository for that particular package will be selected for upgrade.

I have tried to provide slackpkg similar functionality.

Please try..
Code:
attitude --help
 
Old 11-03-2018, 12:48 PM   #5
linuxxer
Member
 
Registered: Apr 2011
Location: I have my own planet
Distribution: SlackwareŽ
Posts: 257

Original Poster
Rep: Reputation: Disabled
attitude-installer added into the distribution

Slackers,

Now attitude-installer is added into the distribution (for testing purpose).
But it is not enabled by default. Please check the wiki.

I have tested this tool on Slackware64-14.2 (fresh) installed system to upgrade-all.
And I have followed Slackware Documents to upgrade to Slackware64-Current.

I tried to implement safe functionality to handle the package files.
During package upgrade, First install new package on the system.
After that delete those files which are NOT Required for updated package but part to old packages.
It mean this tool check all files exist in the old package with all files in updated package, if file not found, then only that particular file is get selected for deletion.
After that it will delete only empty directories.
And then tried to remove broken symlinks if and only if link it is point to the deleted file.

During package removal, First it will delete files and after that it will delete the broken symlinks (it is same as package upgrade).

Package Installation I tried to implement all steps written in the installpkg script.


Known Issue
During package remove task. it will delete empty directories which are part to base system (but listed in the package file list).
Currently I am working on it. Need your feedback and suggestions.
I am trying to check directories which are part of Slackware aaa_base package before deleting it.
But during package upgrade it will not delete it, because it is part of updated package.

Status
Improved curl based downloader.
Currently working only on attitude-installer to enable it default.
Need your feedback and suggestion to develop this tool.

Thanks, in advance....
 
Old 11-03-2018, 12:50 PM   #6
linuxxer
Member
 
Registered: Apr 2011
Location: I have my own planet
Distribution: SlackwareŽ
Posts: 257

Original Poster
Rep: Reputation: Disabled
During system upgrade process (Slackware64-14.2 --> Slackware64-Current).
/bin/hostname file get delete but it is NOT part of net-tool package.
 
Old 11-03-2018, 03:03 PM   #7
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by Lysander666 View Post
What does it do - could you summarise in a nutshell?

Also re your signature, I'm sure the UNIX Principle of KISS stands for "Keep it Simple, Stupid" rather than "Keep it Simple and Stupid".
youre like one of them English professors arnt you catching them punctuation mistakes huh
 
Old 11-03-2018, 03:18 PM   #8
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,498

Rep: Reputation: 8448Reputation: 8448Reputation: 8448Reputation: 8448Reputation: 8448Reputation: 8448Reputation: 8448Reputation: 8448Reputation: 8448Reputation: 8448Reputation: 8448
Quote:
Originally Posted by linuxxer View Post
I tried to implement safe functionality to handle the package files.
During package upgrade, First install new package on the system.
After that delete those files which are NOT Required for updated package but part to old packages.
It mean this tool check all files exist in the old package with all files in updated package, if file not found, then only that particular file is get selected for deletion.
After that it will delete only empty directories.
And then tried to remove broken symlinks if and only if link it is point to the deleted file.
You need to check if files, symlinks, or directories exist in any packages on the system before deleting them. Comparing with just the old package is not a good enough test.
 
9 members found this post helpful.
Old 11-05-2018, 09:46 PM   #9
linuxxer
Member
 
Registered: Apr 2011
Location: I have my own planet
Distribution: SlackwareŽ
Posts: 257

Original Poster
Rep: Reputation: Disabled
@volkerdi,

You are right. I am already working on it.

Thanks for reply.
 
Old 11-10-2018, 07:49 AM   #10
linuxxer
Member
 
Registered: Apr 2011
Location: I have my own planet
Distribution: SlackwareŽ
Posts: 257

Original Poster
Rep: Reputation: Disabled
Slackers,

New changes:
Implemented curl_easy (libcurl) based downloader.
Added package directory structure reading into attitude-installer.
In this feacture directory structure and files created by packages aaa_* are marked as system core files.
These files and directories not get removed even if empty or not used by any other packages.

Now attitude-installer reads the package file list stored into /var/log/packages directory.
It will count the files created by all packages.
At time of package removal only file and directory with count zero will get deleted.

Please report the issue...

Thanks
 
Old 11-12-2018, 09:57 AM   #11
DaBrze
LQ Newbie
 
Registered: Mar 2018
Location: Lodz, PL
Distribution: Slackware
Posts: 16

Rep: Reputation: Disabled
There is an issue on the slackware64-current. The command 'attitude upgrade-all' forces to update all packages dependent on alsa to the version from the tree /extra/pure-alsa-system/. The system has regular versions of these packages installed, so this update is not needed.
 
Old 11-16-2018, 03:58 AM   #12
linuxxer
Member
 
Registered: Apr 2011
Location: I have my own planet
Distribution: SlackwareŽ
Posts: 257

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by DaBrze View Post
There is an issue on the slackware64-current. The command 'attitude upgrade-all' forces to update all packages dependent on alsa to the version from the tree /extra/pure-alsa-system/. The system has regular versions of these packages installed, so this update is not needed.
I will find solution on it.
Currently I am working on attitude-installer.
So it might take time.
Temporary solution is either remove extra for source configuration
if you don't need any other packages from extra repository or blacklist these packages.

Thanks for reply.
 
Old 11-16-2018, 07:26 AM   #13
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
its minor but it's English, it does not look to be your first langauge, ...

Quote:
This tool is able to handle multiple repositories using assigned priority.

During package installation the repositories will then automatically be used by their assigned priority.

It will also provide command line options to override the source selection(s) within the config file for your convenience.

After packages are installed. The same source repository for each package installed, is then used for upgrades to the same package(s).
is that an accurate assumption to what you were trying to say?

Last edited by BW-userx; 11-16-2018 at 07:33 AM.
 
Old 11-16-2018, 10:14 PM   #14
linuxxer
Member
 
Registered: Apr 2011
Location: I have my own planet
Distribution: SlackwareŽ
Posts: 257

Original Poster
Rep: Reputation: Disabled
If I understand correctly. Yes this tool choose same repository at time of upgradation.
I did a testing on my machine and VMs.
 
Old 11-28-2018, 11:41 AM   #15
linuxxer
Member
 
Registered: Apr 2011
Location: I have my own planet
Distribution: SlackwareŽ
Posts: 257

Original Poster
Rep: Reputation: Disabled
Slackers,

There is an update.

Please check New features.

Thanks

Last edited by linuxxer; 11-28-2018 at 11:44 AM. Reason: Spelling mistakes
 
  


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 03:49 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