LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   slackpkg vs. third-party package repository (https://www.linuxquestions.org/questions/slackware-14/slackpkg-vs-third-party-package-repository-4175427364/)

mlpa 08-28-2013 08:13 AM

Quote:

Originally Posted by Raveriux (Post 5017517)
As SBo does not contain packages, but scripts for making packages, repository for SBo have no sence. For SBo packages use a sbopkg tool.

That makes sense and I suppose no one wants to make a "binary" version of SBo.
Still it is a great tool to manage third party repositories.

zerouno 08-28-2013 08:29 AM

0.9.5 released

ruario 08-28-2013 11:02 AM

Quote:

Originally Posted by mlangdn (Post 5017477)
Should that not be:

add '[0-9]+kfn' to etc/slackpkg/blacklist

Umm ... yep! :D

zerouno 08-28-2013 05:56 PM

Uploaded a small patch on github. https://github.com/zuno/slackpkgplus...lackpkgplus.sh

If a user delete /var/lib/slackpkg then slackpkg does not recreate it and fails.

It's a minor, so I will not release a new package now.

Slax-Dude 08-29-2013 06:54 AM

Quote:

Originally Posted by zerouno (Post 5017528)

Still at 0.9.3 when I do this:
Code:

slackpkg update
slackpkg upgrade slackpkg+

Forgot to update the repository? :)

EDIT: sorry, didn't notice when you said
Quote:

Originally Posted by zerouno (Post 5016868)
0.9.4 released, but you must download it manually (I can't generate metadata files)


zerouno 08-29-2013 07:05 AM

Unfortunatly (???) I'm in vacation :) and I've not my pc. I'm releasing slackpkg+ 0.9.4 and 0.9.5 from a microsoft pc (:() so I cannot generate the needed metadata.
I will update repository next monday.

kfn 08-29-2013 04:44 PM

Quote:

Originally Posted by ruario (Post 5017231)
@kfn: Use a tag for your own packages, e.g. suppose you called your package libreoffice-4.1-x86_64-1kfn.txz. You could then add '[0-9]+kfn' to /etc/slackpkg/blacklist and your package would not be prompted for upgrade.

That's one way to go for sure. However, apart from the fact that you would have to manually check for updates as you said, the potential "upgrade" could also happen with newer packages from other sources too (outside of slackpkg+ repos), not only self-packaged ones. So all have to be blacklisted and manually checked later.

So a more proactive behavior sounds good to me: if in case a newer package is not blacklisted and is not in the default repos, then slackpkg+ instead of putting it in the upgrade list, can just give a notification/warning like "Installed version is newer than the repo version"; i think sbopkg does something similar.

Slax-Dude 08-30-2013 08:38 AM

Quote:

Originally Posted by kfn (Post 5018510)
That's one way to go for sure. However, apart from the fact that you would have to manually check for updates as you said

Well, you already do that when you package your own software ;)

Quote:

Originally Posted by kfn (Post 5018510)
So a more proactive behavior sounds good to me: if in case a newer package is not blacklisted and is not in the default repos, then slackpkg+ instead of putting it in the upgrade list, can just give a notification/warning like "Installed version is newer than the repo version"; i think sbopkg does something similar.

Or...
...you could have a local repository with your own packages and add it in the appropriate priority list to slackpkg+
You could use AlienBOB's gen_repos_files.sh script to make a slackpkg+ compatible repository.

zerouno 09-01-2013 04:59 AM

as slackpkg, Slackpkg+ is on sourceforge

zerouno 09-01-2013 04:03 PM

0.9.6 released. Now available with slackpkg upgrade slackpkg+ (vacation finished :( )

Version 0.9.6 - 01/Sep/2013
- fixed a slackpkg bug that does not recreate $WORKDIR if it does not exists.
- added repository name in dialog

phenixia2003 09-02-2013 04:00 AM

1 Attachment(s)
Hello,

Nice to see slackpkg+ on sourceforge. Moreover, It's a good idea to have the repository name beside of the package. I have played a bit with this and I found a tiny annoying bug (pointed by the red debug lines) :

Code:

slackpkg install ffmpeg vlc

Looking for ffmpeg vlc in package list. Please wait... DONE

(DEBUG) found ffmpeg-1.2-x86_64-1alien.txz in repo alienbob
restricted

(DEBUG) found gst-ffmpeg-0.10.13-x86_64-2sl.txz in repo slacky
(DEBUG) found gst-plugins-ffmpeg-0.10.13-x86_64-2alien.tgz in repo alienbob
(DEBUG) found npapi-vlc-20130408-x86_64-1alien.txz in repo alienbob
restricted

(DEBUG) found phonon-vlc-0.6.0-x86_64-1alien.txz in repo alienbob
(DEBUG) found vlc-2.0.8-x86_64-1alien.txz in repo alienbob
restricted


==============================================================================
WARNING!        WARNING!        WARNING!        WARNING!        WARNING!
==============================================================================
One or more errors occurred while slackpkg was running:                     

DIALOG ERROR:
-------------
xargs: unmatched double quote; by default quotes are special to xargs unless you use the -0 option

Error: Expected at least 7 tokens for --checklist, have 5.
Use --help to list options.


-------------
If you want to continue using slackpkg, disable the DIALOG option in
/etc/slackpkg/slackpkg.conf and try again.

Help us to make slackpkg a better tool - report bugs to the slackpkg
developers

==============================================================================

This bug only occurs when a package can be found in more than one repository, like vlc and ffmpeg which are in alienbob and restricted repositories.

The attached patch should fix the issue.

Hope this helps.

Cheers.

--
SeB

zerouno 09-02-2013 05:17 AM

Thankyou.
uploaded the fix

zerouno 09-02-2013 08:05 AM

Uploaded a new version on sourceforge. Is a 'snapshot' version becouse it need testing. For security it is not available with slackpkg upgrade slackpkg+

It add a new feature.
You can install/upgrade packages from file without the needed metadata.

slackpkg install file:package-1.0-noarch-2.txz
slackpkg upgrade file:./pkgs/package-1.0-noarch-2.txz
slackpkg install file:/root/myrepo/package-1.0-noarch-2.txz


WARNING: It's an 'embrional' release. I'm adding other related feature. When it will be stable I can ask it '1.0' release :)

zerouno 09-02-2013 10:29 AM

Now it supports local directory

does not forgot the final "/"
slackpkg install file:./
slackpkg upgrade file:/myrepo/


non-mature code!

zerouno 09-04-2013 05:43 PM

local directory now use suffix 'dir' instead 'file' and do not require the file '/'

slackpkg install file:filename.txz
slackpkg upgrade dir:/myrepo

available on sourceforge.


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