LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   graphical package manager (https://www.linuxquestions.org/questions/slackware-14/graphical-package-manager-4175542931/)

bassmadrigal 05-21-2015 11:21 PM

Quote:

Originally Posted by ReaperX7 (Post 5365805)
Technically, pkgtools does have a UI, but it's ncurses based.

However, OP is looking for a frontend for slackpkg, including the slackpkg+ extension, not pkgtools.

Alien Bob 05-22-2015 02:31 AM

Quote:

Originally Posted by zerouno (Post 5364124)
A few years ago, someone took a graphical version of slackpg and I replied with a small patch that allowed to use kdialog instead of dialog. Of course no one, not even me, has never used this patch because useless.
Now it was being planned to start developing something.
The plan for now is only a concept; I think it's just a wrapper slackpkg+ based on kdialog (not a simple replacement of dialog with kdialog but not something elaborated based on languages and API that I do not know).
Before we begin, however, I would like to be sure that someone has not already done something to not end up with yet another package manager.

Obviously I do not guarantee anything.

Put me on your list if you still need people for that project. Kdialog will be just fine, but it will limit its application to only those people who have KDE installed (and a lot of people do not install that because they think it is bloatware).
I have long sought for a reason to start learning Python and PyQt would be a nice basis for a graphical frontend to slackpkg with slackpkg+ (and every other extension people might want to add in future).
I have some ideas.

Eric

zerouno 05-22-2015 07:16 AM

Quote:

Originally Posted by Alien Bob (Post 5365906)
Put me on your list if you still need people for that project. Kdialog will be just fine, but it will limit its application to only those people who have KDE installed (and a lot of people do not install that because they think it is bloatware).
I have long sought for a reason to start learning Python and PyQt would be a nice basis for a graphical frontend to slackpkg with slackpkg+ (and every other extension people might want to add in future).
I have some ideas.

If you want to start a project in PyQt (that I known it's better than kdialog and many other gui languages) you're welcome!
(Un)fortunately I don't know Python and I don't want/I don't have time to learn it (I don't like it).

xdialog is better than kdialog (obviously less than PyQt) because it is best compatible with dialog and contains some major feature, but it's out of official repository (even if presents in your repository); also kdialog supports --passivepopup useful for notification in system tray.



But before to start with *dialog/PyQt/other I want to try some already existent projects mentioned in this thread; I want to known if these can works with slackpkg+


some years ago (before slackpkg+) I wrote http://www.slacky.eu/slacky/Slackware_Updates_Checker (italian site) that simply check via slackpkg for news changelog and notify it in system tray). It should works with slackpkg. On my pc I've a most recent (2013) version of that script but I'm not using that so I dont remember if it works well.

phenixia2003 suggests a row for crontab to notify updates: http://www.linuxquestions.org/questi....php?p=5146591
Code:

0 */2 * * * export DISPLAY=:0 && /usr/sbin/slackpkg &>/dev/null check-updates && [ -s ~/.slackpkg/updated-repos.txt ] && notify-send -i dialog-warning "[ S L A C K P K G + ]" "Available updates in repositories: $(cat ~/.slackpkg/updated-repos.txt|tr '\n' ','|sed 's/,$//' )"

sorry for confusion in this post. I don't know what I will do.
In first post I ask for the existence of 'somethink' not necessary slackpkg wrapper, just to known what already exists. Obviously I prefer slackpkg+ :) because I can manage directly it if needed.

Bindestreck 05-22-2015 08:10 AM

Is there a GUI (Gtk or QT) for sbopkg?

Alien Bob 05-22-2015 08:36 AM

Using zenity or even better: yad (an improved fork of zenity which does not require libgnomecanvas like zenity does) is also an option.
It is the GTK equivalent of Kdialog. It does not have any external dependencies and should run on any Slackware. I just built it on slackware64-13.37 in a couple of seconds.

zerouno 05-22-2015 09:04 AM

Yes, I know.
this solve the problem:
if [ -x yad ];then
use yad
elif [ -x kdialog ];then
use kdialog
...
...
else
use dialog
fi
solve any problem since are all dialog semi-compatible.

neymac 05-22-2015 09:34 AM

Quote:

Originally Posted by Bindestreck (Post 5365993)
Is there a GUI (Gtk or QT) for sbopkg?

No! It uses "dialog", just type "sbopkg" as root and there is it.

Bindestreck 05-22-2015 09:42 AM

Quote:

Originally Posted by neymac (Post 5366028)
No! It uses "dialog", just type "sbopkg" as root and there is it.

I don't understand, what is root?

zerouno 10-11-2017 07:21 AM

3 Attachment(s)
Quote:

Originally Posted by zerouno (Post 5365981)
(Un)fortunately I don't know Python and I don't want/I don't have time to learn it (I don't like it).

Unfortunately I've to learn python now.
To experiment it I decided to return to this project.

Currently here is a draft not-working of the slackpkg+ configurator, written in PyGObject. I'm not sure to continue using GTK+3 or switch to QT (I'm waiting for qt5 natively in slackware). For now the project works with both python2 and python3, but since some days ago I can opt to totally switch to python3, and since I'm starting to learn python, I think that I will study python3, so this project may be not compatible with slackware 14.2
Attachment 26078
Attachment 26079
Attachment 26080
the goal now is only to learn Python.

travis82 10-11-2017 03:30 PM

Quote:

Originally Posted by zerouno (Post 5365981)
some years ago (before slackpkg+) I wrote http://www.slacky.eu/slacky/Slackware_Updates_Checker (italian site) that simply check via slackpkg for news changelog and notify it in system tray). It should works with slackpkg. On my pc I've a most recent (2013) version of that script but I'm not using that so I dont remember if it works well.

There is SUN for that purpose: https://github.com/dslackw/sun

enorbet 10-11-2017 06:09 PM

Quote:

Originally Posted by cwizardone (Post 5365733)
KDE once had a package manager that ran very well with Slackware. I can't remember why it is no longer used.

You may be thinking of the original KPackage from KDE 3x. I love that app and still use it rather regularly, not for installation but as a one-stop shop for viewing installed packages and especially all the files installed for each package and at what location. It is also handy for uninstalling packages. Kpackage was entirely castrated in KDE v4x but the original will run with just a few old libraries that can neatly be installed in /opt or /usr/local to avoid any confusion. I suppose the original worked at one time for installing but it never seemed advantageous in that area to me so I only used it as I've stated which works out well since it can still do those things precisely and visibly.

gmgf 10-11-2017 06:16 PM

I use QTGZManager sometimes it is very good for find file,lib,..... in the package ;)

https://qtgzmanager.wordpress.com/

solarfields 10-12-2017 03:14 AM

Quote:

Originally Posted by enorbet (Post 5768946)
You may be thinking of the original KPackage from KDE 3x. I love that app and still use it rather regularly, not for installation but as a one-stop shop for viewing installed packages and especially all the files installed for each package and at what location. It is also handy for uninstalling packages. Kpackage was entirely castrated in KDE v4x but the original will run with just a few old libraries that can neatly be installed in /opt or /usr/local to avoid any confusion. I suppose the original worked at one time for installing but it never seemed advantageous in that area to me so I only used it as I've stated which works out well since it can still do those things precisely and visibly.

can you share instructions on how to do that?

bassmadrigal 10-12-2017 08:32 AM

Quote:

Originally Posted by solarfields (Post 5769036)
can you share instructions on how to do that?

I covered them in a previous discussion enorbet and I had on the matter :)

https://www.linuxquestions.org/quest...ml#post5611700

enorbet 10-12-2017 11:04 AM

It was really easy for me to continue using Kpackage from V3 KDE in early v4, because I was still using 32bit 14.0 until a few months ago. Bassmadrigal solved the 64bit and Multilib 14.2 issues quickly and perfectly. Works great! I thanked him then and I do so again now... "Thank you mathed man" (some minor credit for that last bit of "pun-ishment for Lenny Bruce :) )


All times are GMT -5. The time now is 07:33 PM.