USM Unified Slackware Package Manager
- francois
- Contributor
- Posts: 6443
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: USM Unified Slackware Package Manager
The error message is from the gui.
Prendre son temps, profiter de celui qui passe.
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: USM Unified Slackware Package Manager
### IMPORTANT
Problems have been reported when running this script and using the changes=EXIT cheatcode. The reason is the creation of a whiteout file /mnt/live/memory/changes/etc/usm/.wh.usm.conf
Save this as update-usm.sh and run it. It will always update your installation to the latest. You will need to update databases again after running this. You probably won't be able to mount a usm-latest-0.0-noarch-1.xzm over the top of it later on.
If you want a simple command then save the script as /usr/bin/usm-update
Then do: chmod +x /usr/bin/usm-update
Problems have been reported when running this script and using the changes=EXIT cheatcode. The reason is the creation of a whiteout file /mnt/live/memory/changes/etc/usm/.wh.usm.conf
Code: Select all
#!/bin/bash
DATADIR=/usr/share
BINDIR=/usr/bin
SYSCONFDIR=/etc
MANDIR=/usr/man/man8
TARGET=usm
LATEST=usm-latest-0.0-noarch-1.txz
PKG=http://sourceforge.net/projects/usm/files/$LATEST/download
echo "Removing USM"
rm -f ${BINDIR}/${TARGET}
rm -f ${BINDIR}/${TARGET}gui
rm -f ${BINDIR}/packagetools
rm -f ${DATADIR}/applications/${TARGET}.desktop
rm -f ${DATADIR}/icons/hicolor/48x48/apps/usm*
rm -rf ${SYSCONFDIR}/${TARGET}
rm -rf ${DATADIR}/usm
rm -f /${MANDIR}/${TARGET}.8*
rm -rf /var/usm
echo "Installing USM"
wget --no-check-certificate --trust-server-names $PKG -P /tmp || { echo "No internet!!"; exit; }
installpkg /tmp/$LATEST
If you want a simple command then save the script as /usr/bin/usm-update
Then do: chmod +x /usr/bin/usm-update
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
- francois
- Contributor
- Posts: 6443
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: USM Unified Slackware Package Manager
It seems that you always have the solution at hand. In addition, you are faster than your shade, a real Lucky Luke. It did work on my 32 bit porteus installation.
Thanks brokenman.
Thanks brokenman.
Prendre son temps, profiter de celui qui passe.
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: USM Unified Slackware Package Manager
Thanks Francois. I don't know that I am as fast as my shadow though. I have to complete a certain project I am working on now before I can really take another good look at USM. I want to get all these little bugs out of the way and release a Porteus update for USM. I believe USM has potential to grow but I need to make sure it is rock solid stable and easy to use. There have been too many problems I'm hearing of so I think I need to take a look at making it more user friendly and fool proof. Better error messages would be a good start, also an uninstaller so people can replace it with slackyd if they choose.
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Re: USM Unified Slackware Package Manager
package manager is a critical application so what about this:
upon launch USM contacts our server and checks the version. if does not match then upgrade automatically.
people doesnt launch USM that often so this system hopefully wont cause any DDOS on our server
upon launch USM contacts our server and checks the version. if does not match then upgrade automatically.
people doesnt launch USM that often so this system hopefully wont cause any DDOS on our server
Please add [Solved] to your thread title if the solution was found.
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: USM Unified Slackware Package Manager
This is a good idea. Do you think it shoul dbe made active by default or disabled and left to the user to choose the automatic check of updates?
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
- freestyler
- Contributor
- Posts: 384
- Joined: 17 Oct 2013, 14:21
- Distribution: Porteus XFCE
Re: USM Unified Slackware Package Manager
Good idea. I think it should be set to update by default.
Ive noticed that when it does update, USM need to be restarted or it wont search packages. That may be the cause of some peoples problems.
Ive noticed that when it does update, USM need to be restarted or it wont search packages. That may be the cause of some peoples problems.
https://www.porteus-apps.org
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: USM Unified Slackware Package Manager
Yeah. I will add a message that the application needs to restart.
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
-
- Full of knowledge
- Posts: 2083
- Joined: 17 Jun 2013, 13:17
- Distribution: Porteus 3.2.2 XFCE 32bit
- Location: Germany
Re: USM Unified Slackware Package Manager
Personally I don't like (default) automatic "phone-home" components, wherever they may be.
A simple start up message "update usm first...." would be more than is needed.(imo)
Whatever, please don't forget an option to disable this (auto) behavior.Thanks
A simple start up message "update usm first...." would be more than is needed.(imo)
Whatever, please don't forget an option to disable this (auto) behavior.Thanks
- freestyler
- Contributor
- Posts: 384
- Joined: 17 Oct 2013, 14:21
- Distribution: Porteus XFCE
Re: USM Unified Slackware Package Manager
I agree donald, I would turn mine off but I think for new users it will eliminate some problems.
https://www.porteus-apps.org
- brokenman
- Site Admin
- Posts: 6105
- Joined: 27 Dec 2010, 03:50
- Distribution: Porteus v4 all desktops
- Location: Brazil
Re: USM Unified Slackware Package Manager
Wouldn't having this message popup at every start be more annoying than having the occasional popup when a new version of USM is available?A simple start up message "update usm first...." would be more than is needed.(imo)
If you start the USM program then I would assume that you intend to (phone home) connect to our servers in order to search and download software. Where is the difference in 'checking for and internet connection' and checking the version in one step?
Other applications in porteus that require an internet connection store the script online and when the app is started it checks for the internet connection by downloading the main workhorse script. This way we can fix bugs real time without pushing any Porteus updates. Since USM doesn't require an internet connection (you may just be checking dependencies) I didn't take this route.
I understand the whole 'phone home' phobia but this isn't closed source where you can't see what is dialing out and what for. It is completely transparent and there would of course be the option to disable it. The popup would be via notifications panel item so it would disappear in a few seconds. Any further comments or opinions?
How do i become super user?
Wear your underpants on the outside and put on a cape.
Wear your underpants on the outside and put on a cape.
- freestyler
- Contributor
- Posts: 384
- Joined: 17 Oct 2013, 14:21
- Distribution: Porteus XFCE
Re: USM Unified Slackware Package Manager
yup, USM is awesome!Any further comments or opinions?
https://www.porteus-apps.org
-
- Full of knowledge
- Posts: 2083
- Joined: 17 Jun 2013, 13:17
- Distribution: Porteus 3.2.2 XFCE 32bit
- Location: Germany
Re: USM Unified Slackware Package Manager
@brokenman
ok,ok it's not that bad...
How about this:
I start the USM and it does not check anything (internet connection etc.)
until I click a Button (gui) or command (cli) -> "connect to Server".
It's not "phone home' phobia".Sometimes, somewhere it really doesn't matter.
But I prefer an OS, which do not send a single bit on it's own.
ok,ok it's not that bad...
How about this:
I start the USM and it does not check anything (internet connection etc.)
until I click a Button (gui) or command (cli) -> "connect to Server".
It's not "phone home' phobia".Sometimes, somewhere it really doesn't matter.
But I prefer an OS, which do not send a single bit on it's own.
- Ed_P
- Contributor
- Posts: 8555
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Re: USM Unified Slackware Package Manager
hmmmmmDonald wrote:How about this:
I start the USM and it does not check anything (internet connection etc.)
until I click a Button (gui) or command (cli) -> "connect to Server".
When you start Porteus does it automatically connect to your network or do you manually click a network connection after booting?
When you start your browser does it automatically pull up a home page or do you manually click on a link before it connects?
USM would only send a bit when you click on the USM icon. If you don't click on it it won't send anything.But I prefer an OS, which do not send a single bit on it's own.
Yes?
-
- Full of knowledge
- Posts: 2083
- Joined: 17 Jun 2013, 13:17
- Distribution: Porteus 3.2.2 XFCE 32bit
- Location: Germany
Re: USM Unified Slackware Package Manager
@Ed
If I just want to use the (usm) Tools, there is no need to check something.
noautomatically connect to your network
blank pageautomatically pull up a home page
If I just want to use the (usm) Tools, there is no need to check something.