WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Updating tcz apps  (Read 41518 times)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Updating tcz apps
« Reply #90 on: September 28, 2009, 07:46:38 AM »
There is a related question. Is there any reason to keep a previous version instead of moving to the latest stable release? TC is growing rapidly. For sure it will (it must!) slow down and reach a more or less freeze state, but it is far at the moment. To support (both by core team and community) parallel versions is nearly impossible.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #91 on: September 28, 2009, 09:01:54 AM »
Added an exit, shortened some script, changed a few tests that weren't working correctly.  

edit: moved exit to better location in script.

Now that tc has gone through many revisions, isn't it true that the latest extension revision might not work with previous versions of tc. I wonder if there should be a check of some kind that warns about this potential mismatch before the update takes place.

OK, I added a test that directs user to version 2.4 if they try to update a tce extension.  I don't think extensions in the tce rep will get any future support though, so no sense updating with them.  

Edit: I also included another test in case the update fails, such as with an md5.txt mismatch.
« Last Edit: September 28, 2009, 11:42:01 AM by jpeters »

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #92 on: October 02, 2009, 02:45:39 AM »
Added search option:  "-s  name"   eg,  "update -s perl"

Code: [Select]
tc@box:~$ update -s perl
microperl-5.8.9.tcz
perl5.tczl
perl_URI.tcz
perl_xml.tcz

Very fast search of the database
« Last Edit: October 02, 2009, 02:58:11 AM by jpeters »

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #93 on: October 02, 2009, 11:43:30 PM »
Version 2.6 resolves conflicts if coreutils are loaded. Also includes revisions for better file and dependency checks.  

uses wget.tcz


[removed due to policy]

« Last Edit: December 08, 2009, 12:57:55 AM by jpeters »

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #94 on: October 04, 2009, 12:17:11 AM »
oops....had downloads commented out in -c option from testing.  
edit:  typo in -i option
« Last Edit: October 04, 2009, 03:07:23 AM by jpeters »

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: Updating tcz apps
« Reply #95 on: October 04, 2009, 03:37:58 AM »
what do u think about the short tce/z update scrip posted in
http://forum.tinycorelinux.net/index.php?topic=2056.0
by SvOlli?
dCore user

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #96 on: October 04, 2009, 08:38:35 AM »
what do u think about the short tce/z update scrip posted in
http://forum.tinycorelinux.net/index.php?topic=2056.0
by SvOlli?

Think you got wrong link, maybe http://forum.tinycorelinux.net/index.php?topic=2301.0 ?

Mine started with only a few lines, then evolved to fixing the menu, fixing the icons.  To run without rebooting required removing links (or they don't copy). Other features, like first umounting tcz's added for safety. Changes needed to be handled for different editions. Recent versions, for example, won't update without first removing ext from tce.   If you just want to get something into your tce dir and plan to reboot, you can just remove /usr/local/tce.installed and the ext from your tce directory and then reinstall.  Note no safety precautions like umounting first, have been done prior to reinstall, but probably not a big deal with a PPR system loaded to RAM  with a reboot.  

  
« Last Edit: October 04, 2009, 11:36:40 AM by jpeters »

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #97 on: October 17, 2009, 06:46:00 PM »
For version 2.4.1

changes for:
permission changes: /tce.installed
possible .list files in tce dir

Uses: wget.tcz; recommended links browser for viewing list, dep, info files. Set paths at top of script.
  
Tutorial:
[removed due to policy]

edit: fixed -d option  (neglected to remove test)

« Last Edit: December 08, 2009, 12:57:18 AM by jpeters »

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #98 on: October 18, 2009, 07:08:27 PM »
Added "if fi" to one of the APPS tests that occasionally breaks.

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #99 on: October 18, 2009, 10:23:02 PM »
Script changes for possible .list files in tce dir      
« Last Edit: October 18, 2009, 11:29:05 PM by jpeters »

Offline nickispeaki

  • Full Member
  • ***
  • Posts: 177
Re: Updating tcz apps
« Reply #100 on: October 21, 2009, 05:19:22 AM »
Allows reinstallation or download of tcz* or tce* extensions;  duplicate menu issues get fixed on reboot. (note: reinstallation overwrites the loop and tce.menu, so it only looks like there are two copies)
    
example with xonclock:
Code: [Select]
tc@box:~$ sudo rm /usr/local/tce.installed/xonclock

Appsbrowser will now reinstall/download      


i use for it emelfm or pcmanfm.

btw, why is tce-uninstall go away?  ::)

Offline nickispeaki

  • Full Member
  • ***
  • Posts: 177
Re: Updating tcz apps
« Reply #101 on: October 21, 2009, 05:30:56 AM »
Roberts:
may it's need to add update script to base system? this topic was viewed 3000times! 7 pages of hot talkings.....  :D


Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #102 on: October 21, 2009, 08:29:50 AM »
Although I've used the script to update without issue a few thousand times, some feel it's safer to only update from base (in case an extension is still in use when reinstalling something).  Worse case scenario is that a reboot will be necessary, although I've never even had to do that.   Update removes symlinks and umounts tcz's & handles icons/menus before updating.

Scripts have the advantage of easy updating, although not everyone will know how to use them.

re: tcz-uninstall; same issues. It's in the archives, and probably a lot of us  continue to use it.  
« Last Edit: October 21, 2009, 10:35:07 PM by jpeters »

Offline philip

  • Full Member
  • ***
  • Posts: 125
Re: Updating tcz apps
« Reply #103 on: October 24, 2009, 02:55:11 PM »
I'm confused. I copied the script supplied above in the hopes of getting the latest and best, only to find that it is "Version 2.6" and a copy I had acquired on Oct 19 is "Version 2.7". The contents differ in many places. Which is the best choice for now?

Also, I notice that John's 17 Oct post says the script is made for version 4.2.1. Kudos for being ahead of the rest of tc's enthusiastic user base -- not to mention the developers -- by $(4.2.1-2.4.1) version units! ;) And thanks for a well made utility.

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: Updating tcz apps
« Reply #104 on: October 25, 2009, 12:47:47 AM »
I edited a couple of times, and forgot to change the version #.  It's the latest version, though. Thanks for pointing out the dyslexic typo.  My mother always taught me to be forward looking.  Hope the script is working for you, and thanks for trying it out.    

note: the last edit is needed only if you have .list files in your tce_dir.
« Last Edit: October 25, 2009, 12:56:14 AM by jpeters »