LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-30-2004, 06:44 PM   #1
PeteRossi
Member
 
Registered: Jun 2002
Location: Southeast PA
Distribution: Slackware
Posts: 40

Rep: Reputation: 15
Lightbulb Slackware Install Enhancement Suggestion


I have a suggestion for a minor [?] enhancement to the Slackware
install program(s) and package maintenance tools.

I am not sure how others handle Slackware updates, but I keep a complete
Slackware tree on an extra hard drive, and periodically use 'wget' to
keep it up-to-date. For a given release, normally this will just
involve loading new files to the patches directory and a few other
new files (ChangeLog, etc.)

Then I will move these newer version packages into their actual
directories under the /slackware directory, and remove the older
version.

So.. for example if in the N set, we have apache-version1.tgz and
there is a patch released called apache-version2.tgz then I
move the patches/apache-version2.tgz file into the N directory
and remove apache-version1.tgz Now any future installs will
use the newer version.

But there is one glitch with this. Since the old file is now gone,
the next time I do a 'wget' it gets put back.. and then I have to
delete it again.

MY SUGGESTION
=============

Instead of removing the old version, if I were to replace it with
a zero-length file of the same name, and the same timestamp as the
original old file, then won't get replaced again during the next 'wget'.
But.. now when you do an install, there are 2 versions of the package
there.

So.. Would it be hard to change the installer so that if it sees a
ZERO LENGTH package file, then just IGNORE it. This way the old
old package files could remain as a place holder for 'wget' yet the old
package would not get loaded.

Has this ever been suggested before? When I get some time I was
going to try to find the install code and see if I can figure out
what would be required to implement this. .. or anyone else
care to try it?

BTW, I also use this zero-length file trick to prevent various
files in the slackware tree that I don't want (know I will never
use) from actually being loaded every time I do a 'wget' .. like
some large ones that will only use up lots of disk space.
 
Old 07-31-2004, 12:14 AM   #2
slaxnoob
Member
 
Registered: Apr 2004
Posts: 49

Rep: Reputation: 15
Why dont u try using RSync. I think you can do what you're trying to achieve by setting it to delete older files & best of all there'll be no messing up with directories & where to place what.

Try These links

http://www.linuxquestions.org/questi...=rsync+current

http://www.linuxquestions.org/questi...=rsync+current
 
Old 07-31-2004, 09:54 AM   #3
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
yeah, just keep the "patches" directory rsynced and you'll be fine...

you only need to replace the packages in the release directories whenever you're gonna burn a custom updated iso or something...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SuSE 9.0 Pro Speed enhancement baboan Linux - Hardware 0 09-09-2004 11:46 PM
Uninstall Windows X & performance enhancement Swift&Smart Linux - Software 2 08-14-2004 07:04 PM
suggestion for slackware 9.2 (?) Samsara Slackware 41 05-11-2004 12:56 AM
Best Open Source Photo enhancement software HadesThunder Linux - Newbie 4 04-23-2004 08:27 PM
Enhancement in LVM ashishgupta01 Linux - General 0 02-25-2002 11:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration