[Solved]usm update

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
Bogomips
Full of knowledge
Full of knowledge
Posts: 2522
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

[Solved]usm update

Post#1 by Bogomips » 09 Oct 2014, 21:44

rc.local

Code: Select all

usm -u usm noprompts
usm -u all
Would there still be prompt for update & install, and if not, there should be no reason for this not to work?
Last edited by Bogomips on 12 Oct 2014, 13:13, edited 1 time in total.
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

User avatar
brokenman
Site Admin
Site Admin
Posts: 5436
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: usm update

Post#2 by brokenman » 10 Oct 2014, 11:58

noprompts has not been added to the update function. I will try to get this in before the rc1 release. If not then I will add it for the rc2. Thanks.
How do i become super user?
Wear your underpants on the outside and put on a cape.

Bogomips
Full of knowledge
Full of knowledge
Posts: 2522
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: usm update

Post#3 by Bogomips » 10 Oct 2014, 12:03

Seems not to have worked. Did not get prompts in any case. Looked through psinfo and various others in /var/log, but did not find log of rc.local invocations.
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

User avatar
brokenman
Site Admin
Site Admin
Posts: 5436
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: usm update

Post#4 by brokenman » 10 Oct 2014, 20:29

Please put in rc.local: usm -u all > /tmp/dump.log 2>&1

Then check on next boot to see what the problem is. The malfunction may be that the internet connection is not active by the time rc.local is run.
Anyway I have added noprompts to usm update in github.
How do i become super user?
Wear your underpants on the outside and put on a cape.

Bogomips
Full of knowledge
Full of knowledge
Posts: 2522
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: usm update

Post#5 by Bogomips » 11 Oct 2014, 12:19

Decided couldn't wait more than two minutes to boot up, so in rc.local had only

Code: Select all

# /etc/rc.d/rc.local:  Local system initialization script.
...
# 10.10.14
usm -u usm > /tmp/dump.log 2>&1
sleep 10
brokenman wrote: The malfunction may be that the internet connection is not active by the time rc.local is run.
Log seems to say different:

Code: Select all

guest@porteus:~$ cat /tmp/dump.log   
Downloading: vercheck.txt  DONE

/usr/share/usm/funcupdateDatabase: line 338: [: -gt: unary operator expected
No database updates were found.

/usr/share/usm/funcupdateDatabase: line 351: [: -gt: unary operator expected
You have the current USM version.
After boot:

Code: Select all

root@porteus:/home/guest# usm -v

 You are missing required database files! 
 Please run: usm -u all

root@porteus:/home/guest# usm -u all
alien was already updated today. Skipping.
salix was already updated today. Skipping.
slacky was already updated today. Skipping.
ponce was already updated today. Skipping.
slackware was already updated today. Skipping.
slackwarepatches was already updated today. Skipping.

Downloading: extra-deps.txt  DONE

root@porteus:/home/guest# usm -v

 You are missing required database files! 
 Please run: usm -u all

root@porteus:/home/guest# usm -u usm
Downloading: vercheck.txt  DONE

 An update is available for the usm database files.
 Please run:  usm -u all 

 A new version of USM is available.
 Would you like to download it now? [y/n]
Downloading: usm-latest-0.0-noarch-1.txz  DONE
...
 USM was updated successfully
 You are currently using:
 USM-v 

root@porteus:/home/guest# usm -v
 You are using USM version:  3.1.6
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

User avatar
brokenman
Site Admin
Site Admin
Posts: 5436
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: usm update

Post#6 by brokenman » 11 Oct 2014, 18:42

You should update to 3.1.6 before attempting this. It will not support 'noprompts' for updating usm (coming in next version) but should for updating database files.
How do i become super user?
Wear your underpants on the outside and put on a cape.

Bogomips
Full of knowledge
Full of knowledge
Posts: 2522
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: usm update

Post#7 by Bogomips » 11 Oct 2014, 20:34

Not possible. Running always fresh. So updating usm to 3.1.6 thru rc.local was the object of the exercise. :Search:
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

User avatar
brokenman
Site Admin
Site Admin
Posts: 5436
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: usm update

Post#8 by brokenman » 11 Oct 2014, 21:43

Not possible.
Fresh mode does not prevent you from putting a module in a boot time folder. In any case, as I stated earlier, updating usm through rc.local is not possible until the next version.
How do i become super user?
Wear your underpants on the outside and put on a cape.

Bogomips
Full of knowledge
Full of knowledge
Posts: 2522
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: usm update

Post#9 by Bogomips » 12 Oct 2014, 13:12

brokenman wrote:Fresh mode does not prevent you from putting a module in a boot time folder. In any case, as I stated earlier, updating usm through rc.local is not possible until the next version.
Thanks for tip.

Workaround in rc.local

Code: Select all

# /etc/rc.d/rc.local:  Local system initialization script.
...
installpkg /mnt/sda1/tmp/usm/usm-latest-0.0-noarch-1.txz
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

Post Reply