LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware64-Current / slackpkg (https://www.linuxquestions.org/questions/slackware-14/slackware64-current-slackpkg-727378/)

Bruce Hill 05-24-2009 09:12 AM

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/

allend 05-24-2009 09:39 AM

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.

grissiom 05-24-2009 11:00 AM

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.

Bruce Hill 05-24-2009 11:28 AM

Quote:

Originally Posted by grissiom (Post 3551175)
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. :scratch:

allend 05-24-2009 11:41 AM

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'?

Bruce Hill 05-24-2009 12:04 PM

Quote:

Originally Posted by allend (Post 3551199)
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 (Post 3551199)
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


Alien Bob 05-24-2009 01:52 PM

Quote:

Originally Posted by grissiom (Post 3551175)
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

grissiom 05-24-2009 03:54 PM

Quote:

Originally Posted by Alien Bob (Post 3551270)
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...

Bruce Hill 05-24-2009 06:08 PM

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.

allend 05-24-2009 08:29 PM

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

Bruce Hill 05-24-2009 08:36 PM

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/


Drakeo 06-03-2009 08:37 PM

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.

rworkman 06-03-2009 09:01 PM

Quote:

Originally Posted by slackass (Post 3549915)
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.

rworkman 06-03-2009 09:04 PM

Quote:

Originally Posted by Drakeo (Post 3562358)
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?

slackass 06-03-2009 10:05 PM

Quote:

Originally Posted by rworkman (Post 3562383)
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


All times are GMT -5. The time now is 11:52 AM.