LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-24-2009, 09:12 AM   #16
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129

Can someone tell me what line to put in the file
/etc/slackpkg/slackpkg.conf or maybe it should be
/etc/slackpkg/mirrors so that I can use slackpkg
to upgrade from my NFS share? I keep it up to date
via rsync daily.

On my LAN it is /server2/ftp/pub/Linux/Slackware/slackware64-current/
 
Old 05-24-2009, 09:39 AM   #17
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,367

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
Quote:
Can someone tell me what line to put in the file
/etc/slackpkg/slackpkg.conf or maybe it should be
/etc/slackpkg/mirrors so that I can use slackpkg
to upgrade from my NFS share? I keep it up to date
via rsync daily.

On my LAN it is /server2/ftp/pub/Linux/Slackware/slackware64-current/
Bruce,
Try 'cdrom://server2/ftp/pub/Linux/Slackware/slackware64-current/' in /etc/slackpkg/mirrors.
This has worked for me from Samba shares.
 
Old 05-24-2009, 11:00 AM   #18
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Rep: Reputation: 45
Check about line 124 of /usr/libexec/slackpkg/core-functions.sh , it will give you some hints:
Code:
  122         # Check if the mirror are local (cdrom or file)
  123         #
  124         MEDIA=$(echo ${SOURCE} | cut -f1 -d:)
  125         if [ "$MEDIA" = "cdrom" ] || [ "$MEDIA" = "file" ] || \
  126            [ "$MEDIA" = "local" ]; then
  127                 SOURCE=/$(echo ${SOURCE} | cut -f3- -d/)
  128                 LOCAL=1
  129         fi
So, add "file:///path/to/rsync/directory/" works for me. slackpkg will use cp instead of wget to grab files.

I think this feature should be well documented so many people could benefit from it.
 
Old 05-24-2009, 11:28 AM   #19
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by grissiom View Post
Check about line 124 of /usr/libexec/slackpkg/core-functions.sh , it will give you some hints:
Code:
  122         # Check if the mirror are local (cdrom or file)
  123         #
  124         MEDIA=$(echo ${SOURCE} | cut -f1 -d:)
  125         if [ "$MEDIA" = "cdrom" ] || [ "$MEDIA" = "file" ] || \
  126            [ "$MEDIA" = "local" ]; then
  127                 SOURCE=/$(echo ${SOURCE} | cut -f3- -d/)
  128                 LOCAL=1
  129         fi
So, add "file:///path/to/rsync/directory/" works for me. slackpkg will use cp instead of wget to grab files.

I think this feature should be well documented so many people could benefit from it.
That does not work for me ... neither file:/// nor cdrom://

Presently I have this in the file:
Code:
root@jeremiah:~# egrep -v "(^#|^ *$)" /etc/slackpkg/mirrors
file:///server2/ftp/pub/Linux/Slackware/slackware64-current/
Both return this:
Code:
root@jeremiah:~# slackpkg update

Updating the package lists...
        Downloading...
                        Copying ChangeLog.txt...
Files /var/lib/slackpkg/ChangeLog.txt and /tmp/slackpkg.5OC2P7/ChangeLog.txt differ

                List of all files
                        Copying patches/MANIFEST.bz2...
                        Copying slackware/MANIFEST.bz2...
                        Copying extra/MANIFEST.bz2...
                        Copying pasture/MANIFEST.bz2...
                        Copying testing/MANIFEST.bz2...
                Checksums
                        Copying CHECKSUMS.md5...
                        Copying CHECKSUMS.md5.asc...
                Package List
                        Copying FILELIST.TXT...
                Package descriptions
                        Copying extra/PACKAGES.TXT...
        Formatting lists to slackpkg style...
                Package List: using CHECKSUMS.md5 as source
                Package descriptions
It seems to have done something, though it can't possibly transfer
files even within one directory in the time it wrote to stdout,
much less over the LAN. And I can not find /tmp/slackpkg.5OC2P7/ChangeLog.txt
anywhere in this system.

It made the directories, but they're all empty:

Code:
root@jeremiah:~# ls -l /var/cache/packages/
total 8
drwxr-xr-x 14 root root 4096 2009-05-24 23:16 extra/
drwxr-xr-x 17 root root 4096 2009-05-24 23:16 slackware64/
Code:
root@jeremiah:~# ls -l /var/cache/packages/slackware64/kde/
total 0
And there should be files there, but are none.

I must be missing something very elementary here.
 
Old 05-24-2009, 11:41 AM   #20
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,367

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
Quote:
And I can not find /tmp/slackpkg.5OC2P7/ChangeLog.txt
Try '/var/lib/slackpkg'

And what is the output from 'slackpkg install-new' and 'slackpkg upgrade-all'?

Last edited by allend; 05-24-2009 at 11:46 AM.
 
Old 05-24-2009, 12:04 PM   #21
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by allend View Post
Try '/var/lib/slackpkg'
That is not the directory of the ChangeLog.txt I can't find.
Code:
Files /var/lib/slackpkg/ChangeLog.txt and /tmp/slackpkg.5OC2P7/ChangeLog.txt differ
Quote:
Originally Posted by allend View Post
And what is the output from 'slackpkg install-new' and 'slackpkg upgrade-all'?
Code:
root@jeremiah:~# slackpkg upgrade-all

Looking for packages to upgrade. Please wait... DONE

No packages match the pattern for upgrade. Try:

        /usr/sbin/slackpkg install|reinstall


root@jeremiah:~# slackpkg install-new

Looking for NEW packages to install. Please wait... DONE

No packages match the pattern for install. Try:

        /usr/sbin/slackpkg upgrade|reinstall
 
Old 05-24-2009, 01:52 PM   #22
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by grissiom View Post
Check about line 124 of /usr/libexec/slackpkg/core-functions.sh , it will give you some hints:
Code:
  122         # Check if the mirror are local (cdrom or file)
  123         #
  124         MEDIA=$(echo ${SOURCE} | cut -f1 -d:)
  125         if [ "$MEDIA" = "cdrom" ] || [ "$MEDIA" = "file" ] || \
  126            [ "$MEDIA" = "local" ]; then
  127                 SOURCE=/$(echo ${SOURCE} | cut -f3- -d/)
  128                 LOCAL=1
  129         fi
So, add "file:///path/to/rsync/directory/" works for me. slackpkg will use cp instead of wget to grab files.

I think this feature should be well documented so many people could benefit from it.
That should of course be one slash less:

Code:
file://path/to/rsync/directory/
Eric
 
Old 05-24-2009, 03:54 PM   #23
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Rep: Reputation: 45
Quote:
Originally Posted by Alien Bob View Post
That should of course be one slash less:

Code:
file://path/to/rsync/directory/
Eric
Thanks for pointing it out
127 SOURCE=/ <- This slash escaped from my eyes...
 
Old 05-24-2009, 06:08 PM   #24
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Eric, I yield to your greater bash skills, but one slash or two,
it performs the same here, and makes no difference.

However, it seems as if my RTFM skills are sorely lacking:
Code:
root@jeremiah:~# man slackpkg
       update
            update will download the latest package lists from a Slackware mirror (or your CD).  It's a good idea to run
              # slackpkg update
            before attempting to upgrade, install, or search for packages.
            If you need to update Slackware's GPG key, run
              # slackpkg update gpg
            The GPG key doesn't change. This should be a "one time" command - run it once and forget it...
When I read the man page, it did not clearly explain to my
little brain that it was only downloading lists of packages
and not the packages themselves. However, they provide a link
to the slackpkg website, where it's worded much more clearly:
Quote:
Installation

First, you need to download the "slackpkg" package. After that, install slackpkg using the installpkg command.

After install, you need to select ONE (and ONLY one) mirror to download packages from. Edit your /etc/slackpkg/mirrors and uncomment one of those lines or include your own mirror. Only FTP and HTTP mirrors are supported at the moment.

Once you have selected a mirror, type:

* # slackpkg update

Slackpkg will download some important files and update all package *lists* (no actual packages will be updated during this part). You are now ready to use slackpkg ;-)
So first I experimented with a package that my system does not
have. The first one I saw in the ChangeLog.txt was emacs. I'm
a vim enthusiast, and deselect the E series of packages every
time I do a Slackware installation. Therefore, I issued this:
Code:
root@jeremiah:~# slackpkg download emacs-22.3-x86_64-3
Which gave me the slackpkg ncurses download box, with the
emacs-22.3-x86_64-3.txz package showing and selected with a *,
and when I choose OK it downloaded that package only:
Code:
root@jeremiah:~# ls -l /var/cache/packages/slackware64/e/
total 28696
-rw-r--r-- 1 root root 29344592 2009-05-25 07:16 emacs-22.3-x86_64-3.txz
-rw-r--r-- 1 root root      197 2009-05-25 07:16 emacs-22.3-x86_64-3.txz.asc
But how does slackpkg upgrade the whole system? Or even
one package, for that matter? I'm at a loss as to what I
am doing wrong here...
Code:
root@jeremiah:~# slackpkg install-new

Looking for NEW packages to install. Please wait... DONE

No packages match the pattern for install. Try:

        /usr/sbin/slackpkg upgrade|reinstall


root@jeremiah:~# slackpkg upgrade-all

Looking for packages to upgrade. Please wait... DONE

No packages match the pattern for upgrade. Try:

        /usr/sbin/slackpkg install|reinstall

root@jeremiah:~# slackpkg install e/emacs

Looking for e/emacs in package list. Please wait... DONE

No packages match the pattern for install. Try:

        /usr/sbin/slackpkg reinstall|upgrade


root@jeremiah:~# slackpkg install emacs-22.3-x86_64-3

Looking for emacs-22.3-x86_64-3 in package list. Please wait... DONE

No packages match the pattern for install. Try:

        /usr/sbin/slackpkg reinstall|upgrade


root@jeremiah:~# slackpkg install emacs

Looking for emacs in package list. Please wait... DONE

No packages match the pattern for install. Try:

        /usr/sbin/slackpkg reinstall|upgrade
I know there are other packages, and not just emacs, that
are in the latest Slackware64 ChangeLog.txt which are not
installed on my system.

Last edited by Bruce Hill; 05-24-2009 at 07:25 PM.
 
Old 05-24-2009, 08:29 PM   #25
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,367

Rep: Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748Reputation: 2748
The only difference that I can see between what I am doing and what you are attempting is that I have already mounted the remote share on a local directory. Perhaps you should try mounting the share locally, and then use:
'cdrom://local_dir/path/to files' in mirrors
 
Old 05-24-2009, 08:36 PM   #26
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
I've done the same thing:
Code:
mingdao@jeremiah:~$ mount
<snip>
192.168.1.11:/home on /serverhome type nfs (rw,rsize=8192,wsize=8192,hard,intr,addr=192.168.1.11,nfsvers=3,proto=udp,mountproto=udp,mountport=766)
192.168.1.11:/backup on /server1 type nfs (rw,rsize=8192,wsize=8192,hard,intr,addr=192.168.1.11,nfsvers=3,proto=udp,mountproto=udp,mountport=766)
192.168.1.11:/backup2 on /server2 type nfs (rw,rsize=8192,wsize=8192,hard,intr,addr=192.168.1.11,nfsvers=3,proto=udp,mountproto=udp,mountport=766)

mingdao@jeremiah:~$ ls -l /server2/ftp/pub/Linux/Slackware/slackware64-current
slackware64-current/     slackware64-current-iso/
 
Old 06-03-2009, 08:37 PM   #27
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
There is a bug in the Kernel 2.6.29.4 in the uvcvideo.h in /linux/drivers/media etc.
this is causing udev not to make /dev/video0 if any one else hase this problem let Pat know. amd dual 3800 64 bit processor.
this is a known problem sence 2.6.29.3 kernel.
 
Old 06-03-2009, 09:01 PM   #28
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Quote:
Originally Posted by slackass View Post
I'm having a blast with it!
I've been trying to do guncash & deps since last night but the SlackBuilds for libofx & gtkhtml are taking me to task.
David's pushing a batch of changes out now, and as soon as he finished, you'll have working versions of the entire gnucash tree; both of us built all of them on both 12.2 and -64current.
 
Old 06-03-2009, 09:04 PM   #29
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Quote:
Originally Posted by Drakeo View Post
There is a bug in the Kernel 2.6.29.4 in the uvcvideo.h in /linux/drivers/media etc.
this is causing udev not to make /dev/video0 if any one else hase this problem let Pat know. amd dual 3800 64 bit processor.
this is a known problem sence 2.6.29.3 kernel.
Presumably there's a fix queued for -stable 2.6.29.x series?
 
Old 06-03-2009, 10:05 PM   #30
slackass
Member
 
Registered: Apr 2006
Location: SE Texas
Distribution: Slack64-15.0
Posts: 910

Original Poster
Rep: Reputation: 90
Quote:
Originally Posted by rworkman View Post
David's pushing a batch of changes out now, and as soon as he finished, you'll have working versions of the entire gnucash tree; both of us built all of them on both 12.2 and -64current.
Great!!
I've been banging on my yellow button for several days trying to do gnucash.

Thanks!
slackass
 
  


Reply


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
Slackware64 -current made public! bsdunix Slackware 289 06-19-2009 12:15 AM
LXer: Slackware64 -current made public! LXer Syndicated Linux News 3 05-21-2009 12:02 PM
Updating to -current with slackpkg macbeth8 Slackware 8 04-04-2008 07:14 PM
Using slackpkg to Upgrade to Slackware-Current x94qvi Slackware 8 10-20-2007 07:53 PM
slackpkg update = slackware-current? trashbird1240 Slackware 2 04-24-2007 08:50 AM

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

All times are GMT -5. The time now is 01:21 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