LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 10-14-2010, 04:15 PM   #1
riganta
Member
 
Registered: May 2007
Location: Cork (Ireland)
Distribution: Arch Xfce
Posts: 177

Rep: Reputation: 25
Package Update


Hi Guys,

I need help trying to understand how to update packages in Slackware or more to the point the best practice to use for packages update. I have been using slack for a short time only.
I have been updating (patching) by downloading the "tgz" file. Then run upgradepkg "package name". That has worked for me but I was told today that was not best practice.
For example, I need to update bind. When I run "/usr/sbin/named -v" that tells me the version -> BIND 9.4.3-P5.
I have discovered today that there was an updated package for bind
Updated package for Slackware -current:
ftp://ftp.slackware.com/pub/slackwar...7.1-i486-1.txz
So I proceeded to try to download this package but to no avail as the package is not there anymore. I know this might sound very stupid to most of you smart people, but how do I run a package update if I don't have the package.tgz ?
I did run slackpkg update with a mirror. That did not give me the bind updated package either.

I am really lost at sea here.
Can anyone help please ??

Kind Regards,

Last edited by riganta; 10-14-2010 at 04:16 PM. Reason: clarity
 
Old 10-14-2010, 05:32 PM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
The official tool for this is 'slackpkg' and the best source of information is 'man slackpkg'.
You need to select the mirror site you want to use by uncommenting a line in /etc/slackpkg/mirrors. Please do not use the slackware.com site directly.
I suspect that you have uncommented a line in /etc/slackpkg/mirrors but have left a leading space character in place. This will also need to be removed so that slackpkg will use the selected mirror.
You can check your selection using this command:
Quote:
grep -v -e '^#' /etc/slackpkg/mirrors
 
Old 10-15-2010, 02:09 AM   #3
riganta
Member
 
Registered: May 2007
Location: Cork (Ireland)
Distribution: Arch Xfce
Posts: 177

Original Poster
Rep: Reputation: 25
Thanks for your reply.
My problem was that I selected a mirror in 13.1 and not in current. When I selected in current I got my updates but when I rebooted, was greeted by a black screen. I had made a bootable usb rescue system so I started of it. Then I realized that the unit was having kernel panics.
I think I am going to have to wipe out the drive and reinstall the system unless you know a way around my issue

Thanks
 
Old 10-15-2010, 02:50 AM   #4
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Quote:
Originally Posted by riganta View Post
I have been using slack for a short time only. ...
My problem was that I selected a mirror in 13.1 and not in current.
If you are not experienced in running Slackware, then you should probably stick with Slackware stable. When you have enough experience you can move to current if you want to.
Slackware current is for people who really know what they are doing and want to help with reporting bugs on the development release.
Slackware stable will run rock solid stable for the rest of us.

You could always run Slackare stable and Slackware current on your computer if you have enough hard drive space to create partitions for both current and stable.

Last edited by tommcd; 10-15-2010 at 02:52 AM.
 
Old 10-15-2010, 05:47 AM   #5
riganta
Member
 
Registered: May 2007
Location: Cork (Ireland)
Distribution: Arch Xfce
Posts: 177

Original Poster
Rep: Reputation: 25
Yep, I kind of got the drift. I suppose it is a learning curve; steep though but fun
 
Old 10-15-2010, 07:34 AM   #6
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
Yikes! Sorry about that, now I feel guilty. Right now is NOT a good time to be learning slackpkg and playing with -current, as a new glibc and a new kernel have just come into -current. You have probably not got your /etc/slackpkg/blacklist file set up to ignore kernel upgrades that are not applicable to your system.
If you were using the generic kernel with an initrd, then you may have downloaded a new generic kernel and not updated your initrd to suit. /usr/share/mkinitrd/mkinitrd_command_generator.sh is your friend

If you have bootable rescue system, then your system can be recovered, but more detail will be needed. If you can live with a fresh install, that will be faster.
 
Old 10-18-2010, 07:26 AM   #7
riganta
Member
 
Registered: May 2007
Location: Cork (Ireland)
Distribution: Arch Xfce
Posts: 177

Original Poster
Rep: Reputation: 25
allend,

Thank you for your reply.
No worries at all. You do not have to apologize at all. On the contrary.. Thank you for making a distro like slackware possible.
I did a fresh install and all is back to normal.
I did try another upgrade of the kernel last Sunday and got another kernel panic. I ran upgrade of software that i needed without new kernel and its all good. I will stick with 13.1 and go to current only for specific software upgrade; but I am not faced with another issue. If I use current for specific soft, its newer than 13.1. So when I go back to 13.1 for update, I rightfully get a message that the txt file is older than the one I have in my machine. I did not proceed further. Would you have any suggestion on how best to proceed ?

Best Regards, and thank you again for the support and making slack possible...
 
Old 10-18-2010, 07:47 AM   #8
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,845

Rep: Reputation: 452Reputation: 452Reputation: 452Reputation: 452Reputation: 452
The .txt file will be different between -current and stable. The option is to download anyway (y) or no (n). Just type y for yes and download it anyway.
 
Old 10-18-2010, 11:04 AM   #9
riganta
Member
 
Registered: May 2007
Location: Cork (Ireland)
Distribution: Arch Xfce
Posts: 177

Original Poster
Rep: Reputation: 25
Hi mlangdn,

Thanks for your reply. I was not specific enough in my question. Would there be any technical incidence if I download the txt file from stable instead of current ? As I go to current for certain upgrades and then go back to stable.

Kind Regards,
 
Old 10-18-2010, 11:56 AM   #10
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
Would there be any technical incidence if I download the txt file from stable instead of current ? As I go to current for certain upgrades and then go back to stable.
In general, you really don't want to mix current packages into a stable release. Particularly if something like glibc is different. If you need the newer versions of software, I'd look at using the slackbuilds to compile it on a stable system.
 
Old 10-20-2010, 07:33 AM   #11
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
Getting over my WTF moment! For the record, I am NOT a Slackware developer, merely a user who participates in this forum, trying to guide a new user on the use of a basic software tool for managing the system.
The 'slackpkg' tool is only applicable to official Slackware packages, so any software outside of the official release will not be affected.
If you update an official package, then you can add it to the /etc/slackpkg/blacklist file so that it will not be considered by 'slackpkg'.
 
Old 10-20-2010, 11:04 AM   #12
chexmix
Member
 
Registered: Apr 2002
Location: Arlington, MA
Distribution: Slackware, Debian, OpenBSD
Posts: 246
Blog Entries: 16

Rep: Reputation: 25
Quote:
Originally Posted by allend View Post
/usr/share/mkinitrd/mkinitrd_command_generator.sh is your friend
Thank you so much for pointing out this script. It's the first I've heard of it.

Heretofore I'd consulted the README.initrd file in /boot but -- I know this will sound stupid -- I panicked at one point because the examples changed, and no longer fit my system ... luckily I was able to find the previous invocation of mkinitrd in my history and save it as a text file so I'd never lose it, but ...

... it sounds as though with this script I no longer have to do that. Maybe README.initrd (initrd mini-HOWTO) should be updated to mention this ...?
 
  


Reply



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
package does not update walter81 Mandriva 5 09-29-2008 03:39 AM
Slackware security update/package update Michael_aust Slackware 6 10-04-2006 08:19 PM
Package Update noobtesting Mandriva 3 06-23-2004 04:26 PM
Package update NyT3HaWk Slackware 3 02-04-2004 10:18 PM

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

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