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/)

slackass 05-20-2009 03:49 PM

Slackware64-Current / slackpkg
 
I just installed Slack64-Current and love it but:
I can't seem to find a mirror listed in slackpkg for Slackware64-Current.

Also:
In the slackpkg mirrors list I see reference made to
kdelibs3-3.5.10-x86_64_slamd64-opt2.tgz but I can't find it on any of the mirrors and it is not on my install DVD.
It is however on the Slamd64-Current mirrors in /extra/kde3-compat

manwichmakesameal 05-20-2009 04:00 PM

You could probably check the regular mirrors for a /slackware64 dir. You may want to wait for them to update though. Or put something like
Code:

ftp://slackware.oregonstate.edu/pub/slackware/slackware64-current/
in your /etc/slackpkg/mirrors

slackass 05-20-2009 04:08 PM

Thanks!
That's what I did, I just added:
ftp://slackware.oregonstate.edu/pub/...are64-current/
to the bottom of the list an all is well now I think.

gargamel 05-21-2009 04:30 AM

Quote:

Originally Posted by slackass (Post 3547387)
I just installed Slack64-Current and love it but:
I can't seem to find a mirror listed in slackpkg for Slackware64-Current.

Also:
In the slackpkg mirrors list I see reference made to
kdelibs3-3.5.10-x86_64_slamd64-opt2.tgz but I can't find it on any of the mirrors and it is not on my install DVD.
It is however on the Slamd64-Current mirrors in /extra/kde3-compat

Want to do it, too (first time I am interested in running --current, BTW), and just would like to know how you did it. Options I see:
  • upgradpkg everything from my local mirror directory
  • Burn a DVD, upgrade like usual

You guessed it: My Slackware 12.2 stable is running on 64-bit hardware. Is one way to be preferred over the other?

gargamel

gargamel 05-21-2009 04:41 AM

EDIT: Double post for unknown reason, sorry!

gargamel

slackass 05-22-2009 09:40 AM

Quote:

Originally Posted by gargamel (Post 3547904)
Want to do it, too (first time I am interested in running --current, BTW), and just would like to know how you did it. Options I see:
  • upgradpkg everything from my local mirror directory
  • Burn a DVD, upgrade like usual

You guessed it: My Slackware 12.2 stable is running on 64-bit hardware. Is one way to be preferred over the other?

gargamel

I tried the torrent but it was too slow so I just got the DVD from:
ftp://ftp.slackware.no/pub/linux/ISO...ent-ISO-build/

gargamel 05-22-2009 10:08 PM

I used Alien Bob's nice mirror-slackware.sh script. It rsyncs a local directory with one remote repository, and creates iso images for CDs and a DVD, all unattended. Very nice!

I burend the ISO image onto a DVD+RW and installed from it System is up and running, and great!

gargamel

slackass 05-22-2009 11:29 PM

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.
Nice partitioner in /extra
No longer need deps for smplayer & pokerth.
I think Eric & the Slack team hit a home run with this distro!

grissiom 05-23-2009 07:59 PM

But I failed to upgrade slackware64 with slackpkg:(note some pkg updated in slackware64)
Code:

# slackpkg upgrade-all

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

No packages match the pattern for upgrade. Try:

        /usr/sbin/slackpkg install|reinstall


slackass 05-23-2009 08:20 PM

I think there's something wrong with slackpkg.
A whole bunch of updates came out today according to the changelog but I can't get them with slackpkg.
It goes through the slackpkg update ok but won't do the slackpkg upgrade-all.

SqdnGuns 05-23-2009 08:23 PM

Quote:

Originally Posted by slackass (Post 3550666)
I think there's something wrong with slackpkg.
A whole bunch of updates came out today according to the changelog but I can't get them with slackpkg.
It goes through the slackpkg update ok but won't do the slackpkg upgrade-all.

I don't see a "Patches" directory @ ftp://slackware.oregonstate.edu/pub/...are64-current/

Maybe all the mirrors have not sync'd??

grissiom 05-23-2009 08:55 PM

Ok, get things fixed:

sudo vim /etc/slackpkg/slackpkg.conf ,
comment out these lines:
Code:

ARCH=[i]*[3456x]86
PKGMAIN="slackware"

add these lines near them:
Code:

# x86_64 (Slackware64)
ARCH=x86[_64]*
PKGMAIN="slackware64"

Happy upgrading ~;)

slackass 05-23-2009 08:57 PM

SqdnGuns:
Your right!
Gess nuthins broke, I just need to be patient. And perhaps look at things a little closer.
Thanks!

grissiom 05-23-2009 09:06 PM

Quote:

Originally Posted by SqdnGuns (Post 3550668)
I don't see a "Patches" directory @ ftp://slackware.oregonstate.edu/pub/...are64-current/

Maybe all the mirrors have not sync'd??

No, ftp://ftp.slackware.com/pub/slackwar...are64-current/ have no "Patches" directory as well ;)

slackass 05-23-2009 09:06 PM

grissiom:
Worked PERFECT!
Thanks!
U DA MAN!

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

Bruce Hill 06-04-2009 12:40 AM

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.

Maybe I don't understand your meaning...
Code:

mingdao@jeremiah:~$ ls -l /dev/video0
crw-rw---- 1 root video 81, 0 2009-06-04 06:09 /dev/video0
mingdao@jeremiah:~$ uname -a
Linux jeremiah 2.6.29.4 #3 SMP Fri May 29 13:56:50 CDT 2009 x86_64 Intel(R) Core(TM)2 Duo CPU T8300 @ 2.40GHz GenuineIntel GNU/Linux


Drakeo 06-06-2009 10:51 PM

Most Of the newer amd 64 mother boards bios read the 32 bit cams that run on the old v4l1 and compat.
But when you boot udev does not make the rules and create the /dev/video0 there is patches for this. but sence there is no device it is unable to enumerate the port for the usb web cam. not even with the 32 bit slackware it still does noes create the /dev/video on amd dual core 64.
This has been a problem back to 2005. other words throw the old cam away and by a newer one that bios read and lets udev make the device.
Or patch the /usr/src/linux-2.6.29.4/drivers/media/video/uvc/uvcvideo.h file
or get the latest off the svn and rebuild them.

This all sounds good and it may work, but some 64 bit will not enumerate the port .
I bought this computer just to work on theses hardware issues. single core 64 it works on so far but the dual core has been problems.
this post is for Slackware64 current amd-64 dual core linux machines.
May be someone that is spending hours and days working with slackware and having no luck this will help them. It is not the OS it is the newer bios and and old Hardware issue.


All times are GMT -5. The time now is 12:06 AM.