LinuxQuestions.org
Visit Jeremy's Blog.
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 04-01-2008, 10:28 AM   #1
shane2peru
Member
 
Registered: Aug 2006
Posts: 33

Rep: Reputation: 15
Best way to get a new install updated?


What is the best way to get a Slackware 12 installation updated? I'm kind of new so I don't know alot of the way of doing things here any help would be appreciated. Thanks.

Shane
 
Old 04-01-2008, 10:45 AM   #2
jfxg
LQ Newbie
 
Registered: Aug 2007
Distribution: PClinuxOS
Posts: 25

Rep: Reputation: 15
The Slackware extra repository at http://packages.slackware.it/browse.php?q=12.0/extra has a package called "slackpkg" it's easy to install and use. Read the man page, it has good information on how to use it. This is only one solution but it has worked well for me.
here is a link to a how-to which gives you an idea of how to do different things including installing software
http://www.howtoforge.com/the_perfec...op_slackware12
this also a good resource.
http://www.linuxquestions.org/questi...it-all-174447/
good luck
 
Old 04-01-2008, 12:00 PM   #3
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
If you're going to update to -current, it's advisable to update everything and not just part of -current. There have been some major changes since 12.0, so if you're not experienced with this it might be better to either (a) make or get an iso image of -current, then backup and do a fresh install, or (b) wait for 12.1. It is probably only weeks away, but only God knows for sure ... not even Pat.

___________________________

Are the things you're living for worth Christ dying for?
--- Leonard Ravenhill
 
Old 04-01-2008, 01:06 PM   #4
shane2peru
Member
 
Registered: Aug 2006
Posts: 33

Original Poster
Rep: Reputation: 15
@jfxg Thanks!!! I downloaded and installed and updated everything but the kernel, I read something about updating kernels is a little more difficult or you have to update lilo or something. I don't have lilo installed, I'm dual booting, and Ubuntu is controlling my grub I like it that way. Thanks for the tip on that, that was great!

@Bruce Hill Thanks, I'm not sure I have a good understanding of how the Slackware setup works as far as 11, 12, and Current. I think I downloaded the version 12, at anyrate I updated with the version 12 mirrors for slackpkg. I think current is like the testing branch if I'm not mistaken?

Thanks for the help!

Shane
 
Old 04-01-2008, 01:09 PM   #5
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
Quote:
Originally Posted by shane2peru View Post
What is the best way to get a Slackware 12 installation updated? I'm kind of new so I don't know alot of the way of doing things here any help would be appreciated. Thanks.

Shane
My suggestion to you would be to stick with only the security updates and not try to update everything to -current. It will be much easier to maintain your system that way and it will probably be more stable. If you need a newer version of a certain stock package then I suggest using the official slackbuilds to build one. I can elaborate on that if you are interested.

For security updates:
Ideally, you would have a fresh install of the newest slackware (not -current) around the time it first comes out. If you then subscribe to the security mailing list, then you would get an email every time a security update is available. All you do is download the update (faster if you use a mirror closest to you) and then use upgradepkg as root to install it.

If you are updating a slackware install a while after it was originally released then you could simply check the security advisories pages. Just install all the updates that are for your version (start at the first date after your version's release date which is listed on slackware.com's front page).

Even if you use a tool like slackpkg to handle your updates you should read the security advisory pages (or emails if subscribed to the mailing list) so that you are aware of any special actions needed for certain updates. For instance, one of the updates for Slackware 12 is a kernel update. If you don't run lilo after installing it your system will not be be able to boot. That is why I don't recommend using something like slackpkg (at least until you have had more experience with updates)- it forces you to pay a little more attention to what you are doing.
 
Old 04-01-2008, 01:59 PM   #6
shane2peru
Member
 
Registered: Aug 2006
Posts: 33

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by shadowsnipes View Post
My suggestion to you would be to stick with only the security updates and not try to update everything to -current. It will be much easier to maintain your system that way and it will probably be more stable. If you need a newer version of a certain stock package then I suggest using the official slackbuilds to build one. I can elaborate on that if you are interested.

For security updates:
Ideally, you would have a fresh install of the newest slackware (not -current) around the time it first comes out. If you then subscribe to the security mailing list, then you would get an email every time a security update is available. All you do is download the update (faster if you use a mirror closest to you) and then use upgradepkg as root to install it.

If you are updating a slackware install a while after it was originally released then you could simply check the security advisories pages. Just install all the updates that are for your version (start at the first date after your version's release date which is listed on slackware.com's front page).

Even if you use a tool like slackpkg to handle your updates you should read the security advisory pages (or emails if subscribed to the mailing list) so that you are aware of any special actions needed for certain updates. For instance, one of the updates for Slackware 12 is a kernel update. If you don't run lilo after installing it your system will not be be able to boot. That is why I don't recommend using something like slackpkg (at least until you have had more experience with updates)- it forces you to pay a little more attention to what you are doing.
Thanks for the tips!!! I subscribed to the security list. I wondered how to do that too. I did already read a post about someone with an unbootable system, and that is why I left off the kernel updates. If I'm not using lilo (which I'm not) then this shouldn't be such a big issue correct? I'm using Grub, and my other Linux OS has control of it. I'm not new to Linux, but certainly don't know the Slack way of doing things either.

Shane
 
Old 04-01-2008, 02:28 PM   #7
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
Since you are using grub with another Linux distro you should be fine. Just keep in mind that the kernel update changes the symlinks in /boot so update which ever kernel image last that you want to be using. So, for instance, if your /boot/vmlinuz points to your huge kernel and you want to stick with it, then upgrade that one last. This is all assuming, of course, that your menu.lst file points to slackware's vmlinuz.

The doinst.sh file in a slackware package is a script that runs at the end of the install. If you check this file in the kernel upgrade packages you will see what I mean about the symlinks.

I have a couple of scripts that you may find helpful for these purposes. Let me know if you have any questions about them.
 
Old 04-01-2008, 03:01 PM   #8
MannyNix
Member
 
Registered: Dec 2005
Location: ~
Distribution: Slackware -current
Posts: 463

Rep: Reputation: 51
Quote:
Originally Posted by shane2peru View Post
I think I downloaded the version 12...
Tiny tip: cat /etc/slackware-version should say something like: Slackware 12.0.0
If you were using -current (which i suggest you don't yet since you're still getting familiar with slackware) it would say: Slackware 12.1
Check the etc.SlackBuild
Note line 28: ...etc-$VERSION-$ARCH-$BUILD and line 11: VERSION=12.1

Last edited by MannyNix; 04-01-2008 at 03:10 PM.
 
Old 04-01-2008, 03:34 PM   #9
din
Member
 
Registered: Nov 2006
Posts: 53

Rep: Reputation: 15
Hi, shadowsnipes.
Can you explain a bit more about kernels?

If i use now kernel-huge-smp-2.6.21.5 and thare is update i just upgrade the package. ok?
If i want to try instead another kernel, like kernel-generic-smp-2.6.21.5, i just install
package kernel-generic-smp-2.6.21.5_smp-i686-2_slack12.0.tgz and thats it? OK?
If i want to update my kernel to current i have to upgrade all my packages? If i go to current->kernels. there is 3 files: System.map.gz,bzImage,config. Do i need this?

I think i am confused.
 
Old 04-01-2008, 04:24 PM   #10
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
Quote:
Originally Posted by din View Post
Hi, shadowsnipes.
Can you explain a bit more about kernels?

If i use now kernel-huge-smp-2.6.21.5 and thare is update i just upgrade the package. ok?
If i want to try instead another kernel, like kernel-generic-smp-2.6.21.5, i just install
package kernel-generic-smp-2.6.21.5_smp-i686-2_slack12.0.tgz and thats it? OK?
If i want to update my kernel to current i have to upgrade all my packages? If i go to current->kernels. there is 3 files: System.map.gz,bzImage,config. Do i need this?

I think i am confused.
Alright, do a ls -l /boot and look at the files. You should see kernel images (vmlinuz*), configs, and System.maps for all the stock kernels. You should also 3 symlinks for each of those. You grub bootloader, by default, is most likely pointing to the vmlinuz symlink for Slackware, but you can tell it to have all the kernels listed to boot if you desire (just modify /boot/grub/menu.lst).

If you are just using the stock kernels then you can just upgradepkg them all. Just keep in mind that those packages change the three symlinks I mentioned. Whichever one you upgrade last will have the vmlinuz, config, and System.map symlinks pointing to its respective files. The symlinks are simply a convenience, but keep them in mind if grub points to them in its boot options.

I am not sure if you can just use -current's kernel images or not. I wouldn't recommend that in case the newest version is using a new gcc, etc. If you want a newer kernel than the stock Slackware kernel just build your own. There are plenty of threads about how to go about that so I won't go into details about that here.

But yes, whenever you install a kernel you should install the bzImage, System.map, and config file. The config file under /boot is really more just for reference. You can view the config for your current kernel by
Code:
zcat /proc/config.gz
or throw it in a file
Code:
zcat /proc/config.gz > myConfig
 
Old 04-01-2008, 04:28 PM   #11
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
din, are you using Grub? Sorry, I thought you were shane2peru at first.

If you are using lilo be sure to run lilo after you are done upgrading kernels.

Also, if you plan on using one of the generic kernels be sure that you build an initrd so you filesystem can be loaded at boot. Read /boot/README.initrd for more info about this.
 
Old 04-01-2008, 04:36 PM   #12
shane2peru
Member
 
Registered: Aug 2006
Posts: 33

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by shadowsnipes View Post
Since you are using grub with another Linux distro you should be fine. Just keep in mind that the kernel update changes the symlinks in /boot so update which ever kernel image last that you want to be using. So, for instance, if your /boot/vmlinuz points to your huge kernel and you want to stick with it, then upgrade that one last. This is all assuming, of course, that your menu.lst file points to slackware's vmlinuz.

The doinst.sh file in a slackware package is a script that runs at the end of the install. If you check this file in the kernel upgrade packages you will see what I mean about the symlinks.

I have a couple of scripts that you may find helpful for these purposes. Let me know if you have any questions about them.
Shadowsnipes, Thanks! I know about symlinks and that is what my Grub points to so I should be fine, however I will make a note of which one I'm booting off of. Thanks!


Quote:
Originally Posted by MannyNix View Post
Tiny tip: cat /etc/slackware-version should say something like: Slackware 12.0.0
If you were using -current (which i suggest you don't yet since you're still getting familiar with slackware) it would say: Slackware 12.1
Check the etc.SlackBuild
Note line 28: ...etc-$VERSION-$ARCH-$BUILD and line 11: VERSION=12.1
Very handy! Thanks, I am running 12.0. I really don't have any plans of running the -Current, I'm not much for the unstable stuff, although I do like new stuff.

I appreciate the help! Thanks all!

Shane
 
Old 04-01-2008, 10:39 PM   #13
din
Member
 
Registered: Nov 2006
Posts: 53

Rep: Reputation: 15
Thanks for help.
Somehow kernels is the harder part of linux for me.
But it will change.

Some times help from some one like you
is better than 100 rtfm's .

You are doing good work by helping newbies like me ...

PS. I use grub for 2 systems. Its slackware and arch. I learn both.
I don't know yet who is better. I think to learn them both
will do the job "to know" linux.

PS2. shane2peru! Sorry, i used your topic here for my question.

Last edited by din; 04-01-2008 at 10:48 PM.
 
Old 04-01-2008, 11:13 PM   #14
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
din,

If you need help learning how to rebuild your kernel, start with my Linux Kernel Rebuild Guide.
Read it all, and then when you're ready to attempt it if you need help, let me know.
 
Old 04-02-2008, 12:21 AM   #15
din
Member
 
Registered: Nov 2006
Posts: 53

Rep: Reputation: 15
Bruce Hill,
Thank you. I will try ...
 
  


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
How to create custom install CD (updated rpms, kickstart, etc.)? Arodef Linux - Software 6 12-17-2007 02:11 PM
Create new install disc with updated packages RandomUser56 Linux - General 1 10-03-2006 01:53 PM
How do I install updated binutils rpm madfish Fedora 4 02-01-2005 04:20 PM
want to install an old SUSE 8.1 Pro but need it to be updated/upgraded???? Metalbarthug Linux - Newbie 0 10-18-2004 12:39 PM
Gaim updated version, install probs adamkimber Linux - Software 6 11-16-2003 06:18 PM

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

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