LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   keep slack 10 updated with wget? (http://www.linuxquestions.org/questions/slackware-14/keep-slack-10-updated-with-wget-241557/)

mipia 10-11-2004 09:52 PM

keep slack 10 updated with wget?
 
Ive been reading here and there about how some people are able to update thier slackware system via wget. I've been reading through the wget man page but Im just confused on how I would do this. Any pointers on what I should use for syntax? As far as I am able to understand so far, this will download the needed packages and I can use pkgtool to install. Any syntax help would be appreciated. Thank you!

DaHammer 10-11-2004 10:30 PM

I assume you mean manually maintaining Slackware. If so it's as simple as going to ftp://ftp.slackware.com/pub/slackwar...-10.0/patches/ and taking a look at the ChangeLog.txt file. Then downloading what you want with wget:
And using upgradepkg:
Code:

upgradepkg whatever-x.x.tgz
You can see what packages you have installed in /var/log/packages/, else using pkgtool.

mipia 10-12-2004 04:20 PM

yea i figured that out. My previous post was a sort of quick before bed thing. Is there a way to exclude the packages already downloaded if I want to wget again in the future? Would there be a possibility to somehow cron this? Maybe I should just subscribe to a update newsletter? Curious I guess.

gbonvehi 10-12-2004 04:24 PM

The better way is to take a look at: ftp://ftp.slackware.com/pub/slackwar.../ChangeLog.txt when you wake up ;)

DaHammer 10-12-2004 04:29 PM

Yeah, don't believe I'd automate it entirely. If your looking for something with less interaction on your part, you could use one of the 3rd party programs for updating Slackware, like swaret or slackpkg.

mipia 10-12-2004 04:56 PM

yea i suppose, Im doing this to avoid a 3rd party app in the first place. No biggy. I'll just check when I get home from work or something. Thanks again.:D

gnashley 10-13-2004 02:20 AM

You could use rsync to keep a local directory updated with the latest updates. That will only download files not already in your local dir.

-X- 10-13-2004 05:48 AM

What I use to keep Slackware updated with wget. Run it when you know of a change or put it in your cron. cd to the mirror path and;
# upgradekg *.tgz
-or- add the command to the script.

I generally run this (cron) one a week or when I get mail on changes. I also perform the upgradepkg after looking through the change log and looking the files directory.

--- Slackware-wget-update --
#!/bin/bash
#
VERSION=10.0
# Where to put the files
PATHDOWNLOAD=/var/download/mirror/
# Where to mirror from. only have one.
#ftp://carroll.cac.psu.edu/pub/linux/...are/slackware-$VERSION/patches/packages/
FTPSITE=ftp://slackware.oregonstate.edu/pub/slackware/slackware-$VERSION/patches/packages/
#
wget -o /var/log/slackware-mirror -P $PATHDOWNLOAD --mirror $FTPSITE
# Mail root
mail -s "Slackware mirror" root < /var/log/slackware-mirror

Edit: updatepkg -> upgradepkg.
To much BSD stuff in my head.

mipia 10-13-2004 05:01 PM

great, thanks


All times are GMT -5. The time now is 05:40 AM.