LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 12-02-2010, 05:44 PM   #1
michaelinux
Member
 
Registered: Apr 2009
Location: El Salvador
Distribution: Slackware -current
Posts: 166

Rep: Reputation: 17
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.

Last edited by michaelinux; 12-03-2010 at 10:24 AM. Reason: solved
 
Old 12-02-2010, 05:51 PM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,563
Blog Entries: 1

Rep: Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024
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.

Last edited by sycamorex; 12-02-2010 at 06:12 PM.
 
Old 12-02-2010, 05:55 PM   #3
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.1
Posts: 1,220

Rep: Reputation: 177Reputation: 177
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/

Last edited by Daedra; 12-02-2010 at 05:58 PM.
 
Old 12-02-2010, 06:59 PM   #4
GazL
Senior Member
 
Registered: May 2008
Posts: 3,383

Rep: Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914
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.
 
Old 12-02-2010, 07:44 PM   #5
chrisretusn
Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware
Posts: 475

Rep: Reputation: Disabled
Quote:
Originally Posted by michaelinux View Post
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.

Last edited by chrisretusn; 12-02-2010 at 07:46 PM.
 
1 members found this post helpful.
Old 12-02-2010, 08:06 PM   #6
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 518

Rep: Reputation: 133Reputation: 133
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.
 
  


Reply

Tags
current, packages, slack13


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
slackware 12.1 blank screen after clicking "end current session" nick_slack Slackware 7 05-25-2008 09:01 PM
RAID 5 with mdadm "spare" and "active sync" confusion ufmale Linux - Server 1 12-08-2007 10:31 AM
slackware "current" problems after install on vmware jimp180 Slackware - Installation 2 07-17-2007 01:35 PM
"expert" install option for slackware-current? somae Slackware 1 06-30-2007 01:52 AM
firefox 2.0 "save as box" problem on Slackware Current davimint Slackware 5 05-25-2007 06:28 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration