LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   how to "sync" with slackware-current? (http://www.linuxquestions.org/questions/slackware-14/how-to-sync-with-slackware-current-848024/)

michaelinux 12-02-2010 05:44 PM

how to "sync" with slackware-current?
 
I've been a slackware user for a couple of years now, but i've always used the packages that came with it, i never "updated" it.
now i've seen a lot of people saying they keep sync with slackware-current and they keep their systems up to date.
now with a little of embarrassment i wonder... how do i do that?
could you please tell me?
thanks.

Thanks everybody for your answers, i think we can say this is solved.
thanks again.

sycamorex 12-02-2010 05:51 PM

First of all, to get the -current image to install it, you can use AlienBob's script:
http://www.slackware.com/~alien/tool...are-current.sh

Then to keep it updated, you need to either:
1. Check Slackware changelogs. This one is for Slackware64-current
http://slackware.com/changelog/current.php?cpu=x86_64
Make sure you read any comments that might be there.
and then:
Code:

# slackpkg update
# slackpkg install-new
# slackpkg upgrade-all

2. Alternatively, you can use rsync to keep your packages synchronised with some Slackware mirrors.

Daedra 12-02-2010 05:55 PM

sycamorex beat me, lol.

Do the above :)

Keep in mind though -current is a development branch so things could break. You can still use slackpkg to keep update to date with the stable branches. Also if your doing a clean install you can use the script sycamore posted above or Alien Bob has iso's for current now on his mirror http://taper.alienbase.nl/mirrors/slackware/

GazL 12-02-2010 06:59 PM

I wouldn't recommend using this but just for a little variety I'll show you how I do it.

I have two very basic home grown scripts.

rsync_slackware.sh:
Code:

#!/bin/bash
#

#######################################################################
echo "Syncing current mirror"

rsync -avz --delete-during --delete-excluded --partial \
rsync://rsync.mirrorservice.org/ftp.slackware.com/pub/slackware/slackware64-current /local/mirrors/

#######################################################################

exit

## END

current_update.sh:
Code:

#!/bin/bash

cd /local/mirrors/slackware64-current/slackware64 || exit 1


# Find package files

find . -name "*.t?z" -print > /tmp/pkglist.full || exit 1


# Integrity check

while read filename
do
  gpg --verify "$filename.asc" || exit 1
done < /tmp/pkglist.full


#  Sort package list

sort < /tmp/pkglist.full > /tmp/pkglist.sorted || exit 1

# Filter package list
#
#  excluded:
#      a/shadow-4.1.4.2    : patched from upstream trunk to fix issues.
#    xap/xfce-4.6.1        : patched to fix thunar detail-list issue.
#

grep -v -F "./a/aaa_
./a/glibc-solibs
./a/kernel
./kde
./kdei
./xap/xfce-4.6.1-x86_64-9
./a/shadow-4.1.4.2-x86_64-3" \
    < /tmp/pkglist.sorted  > /tmp/pkglist.filtered

if [ $? -gt 1 ] ; then
  echo "ABORTED: Something bad happened to the grep" >&2
  exit 1
fi


#  Do install/upgrade

upgradepkg --install-new a/aaa_*.t?z
upgradepkg --install-new a/glibc-solibs*.t?z

xargs -r upgradepkg --install-new < /tmp/pkglist.filtered


#  List new files

echo "------------------------------------------------------------------------"
echo ".new file that need attention:"
find /etc -name "*.new"
echo "------------------------------------------------------------------------"

I normally only run the current_update script if there are a large number of updates. If there's only a few I do them manually.
I have to keep an eye on the changelog though as this doesn't deal with removed packages, which is an advantage that slackpkg has.

chrisretusn 12-02-2010 07:44 PM

Quote:

Originally Posted by michaelinux (Post 4178845)
I've been a slackware user for a couple of years now, but i've always used the packages that came with it, i never "updated" it.
now i've seen a lot of people saying they keep sync with slackware-current and they keep their systems up to date.
now with a little of embarrassment i wonder... how do i do that?
could you please tell me?
thanks.

I am thinking there may be some confusion here with "people saying they keep sync with slackware-current and they keep their systems up to date"

If you have been using the packages that came with it, one would assume you are using a stable version numbered version of Slackware not the -current version. Slackware-current is a development, testing version. I could be wrong I suppose.

The simplest method to stay in "sync" or "updated" is to use slackpkg as root. That is what slackpkg was designed for.

Before you can use slackpkg you have to edit /etc/slackpkg/mirrors and uncomment a mirror for your version of Slackware. If you are not using Slackware-current now I would not recommend doing so. Stick with the numbered version at least until you are comfortable with using slackpkg.

To see if there are updates available using slackpkg you can run as root:

slackpkg check-updates

This checks to see if ChangeLog.txt has changed and will simply report "No news is good news" or "News on ChangeLog.txt" In the later case you will then have to run:

slackpkg update

This can be run instead of the above "slackpkg check-updates" The difference is "slackpkg update" will automatically download all of the files needed to the update of Slackware if ChangeLog.txt has changed.

Once "slackpkg update" is done you should review the changes in ChangeLog.txt and then run as needed:

slackpkg install-new
slackpkg upgrade-all

Make sure you read the man page for slackpkg.

As for syncing, as in keeping a mirror of the Slackware-version tree, unless you have a reason to, don't. Regardless of whether you mirror or not you will still have to run slackpkg to update Slackware. If all you are looking for it to stay "current" or "synced" as in updated, then just use slackpkg.

piratesmack 12-02-2010 08:06 PM

I keep a local mirror using mirror-slackware-current.sh (Useful if I ever need to reinstall/rebuild a package, or build a current ISO)

And I have slackpkg configured to use the mirror:

/etc/slackpkg/mirrors
Code:

#----------------------------------------------------------------
# Local Directory
#----------------------------------------------------------------
file://home/ftp/pub/Linux/Slackware/slackware-current/

I install updates with:
Code:

# sh mirror-slackware-current.sh
# slackpkg update
# slackpkg install-new
# slackpkg upgrade-all
# slackpkg clean-system

If it's a large update, I run the slackpkg commands in single user mode.


All times are GMT -5. The time now is 08:10 PM.