LinuxQuestions.org
Review your favorite Linux distribution.
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-29-2011, 07:07 AM   #1
Kubuntu
Member
 
Registered: Jun 2009
Location: Oviedo (Spain)
Distribution: Gentoo
Posts: 63

Rep: Reputation: 0
Updating/Upgrading packages


Hello.

I've some doubts about how to update/upgrade packages which I install, the kernel and de distro.

I only know that the packages which are installed with the distro (KDE, Mozilla Firefox, etc.) are updated according to the mailing list in http://www.slackware.com/security. But what does happen with other packages as Chromium or VLC? I installed some of these packages with ./configure > make > sudo make install, not with sbopkg.

Thanks.
 
Old 04-29-2011, 07:11 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
In that case you have to do watch for upgrades youself. In any case it makes things simpler to generate packages instead of doing make install. You can use src2pkg or makepkg for that.
 
Old 04-29-2011, 10:56 AM   #3
Kubuntu
Member
 
Registered: Jun 2009
Location: Oviedo (Spain)
Distribution: Gentoo
Posts: 63

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TobiSGD View Post
In that case you have to do watch for upgrades youself. In any case it makes things simpler to generate packages instead of doing make install. You can use src2pkg or makepkg for that.
makepkg seems to be easy. So, I need a package.tgz or .txz to use makepkg. And what to do after?
 
Old 04-29-2011, 11:18 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
If you made the package you just install it. The package manager keeps track of the installed files. This way, if you want to upgrade your system you just make a new package with the newer version and use upgradepkg to install it. That will first remove the old files and then install the new one. Files that are not longer contained in the new package are removed this way, which wouldn't be the case if you upgrade via make install.
 
Old 04-29-2011, 11:47 AM   #5
Kubuntu
Member
 
Registered: Jun 2009
Location: Oviedo (Spain)
Distribution: Gentoo
Posts: 63

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TobiSGD View Post
If you made the package you just install it. The package manager keeps track of the installed files. This way, if you want to upgrade your system you just make a new package with the newer version and use upgradepkg to install it. That will first remove the old files and then install the new one. Files that are not longer contained in the new package are removed this way, which wouldn't be the case if you upgrade via make install.
So, if I've understood well, to upgrade Chromium, I have to download chromium.tar.bz2, convert it to .tgz and execute makepkg chromium.tgz.

EDIT: I've found this: http://www.linuxquestions.org/questi...-*-tgz-501301/

So, I've installed src2pkg using the installpkg src2pkg.tgz

Now, two questions. How do I update/upgrade my kernel? It's 2.6.33.4-smp. And how can I use the 13.37 version packages and so on?

Last edited by Kubuntu; 04-29-2011 at 12:37 PM.
 
Old 04-29-2011, 12:56 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
To upgrade your system to 13.37 you should have a look athe the CHANGES_AND_HINTS.TXT file.
It is all explained in there. You will get automatically the 2.6.37.6-kernel when upgrading.
For manually upgrading the kernel you should have a look at the kernel chapter of the SlackBook, which is in general a good source of knowledge about Slackware and Linux in general.
 
Old 04-29-2011, 01:12 PM   #7
Kubuntu
Member
 
Registered: Jun 2009
Location: Oviedo (Spain)
Distribution: Gentoo
Posts: 63

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by TobiSGD View Post
To upgrade your system to 13.37 you should have a look athe the CHANGES_AND_HINTS.TXT file.
It is all explained in there. You will get automatically the 2.6.37.6-kernel when upgrading.
For manually upgrading the kernel you should have a look at the kernel chapter of the SlackBook, which is in general a good source of knowledge about Slackware and Linux in general.
This link (ftp://ftp.gwdg.de/pub/linux/slackwar...37/UPGRADE.TXT) says:

Code:
1.  Upgrade your package utilities and related tools:

    upgradepkg /root/slackware/a/pkgtools-*.tgz
    upgradepkg /root/slackware/a/tar-*.tgz
    upgradepkg /root/slackware/a/xz-*.tgz
    upgradepkg /root/slackware/a/findutils-*.txz
But the directory /root/slackware doesn't exist
 
Old 04-29-2011, 01:15 PM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
From the same file, one paragraph before your quoted text:
Quote:
The packages don't have to be on a CD-ROM, as an alternative you could
copy the slackware directory (the one with the various package
subdirectories in it, basically the "slackware" or "slackware64" directory
from the install disc) to someplace like /root/slackware/. The important thing
is that you know where the slackware packages directory is. We'll use
/root/slackware in the following examples.
 
Old 04-29-2011, 01:32 PM   #9
Kubuntu
Member
 
Registered: Jun 2009
Location: Oviedo (Spain)
Distribution: Gentoo
Posts: 63

Original Poster
Rep: Reputation: 0
Ah, ok, so I have to download de CD of Slackware 13.37 and copy the "slackware" directory to /root/slackware or another directory.
 
Old 04-29-2011, 01:37 PM   #10
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
You can also use wget to download only the repositories. This way you can save a good amount of bandwidth. You can do it like this:
Code:
cd /root
wget -r http://ftp.gwdg.de/pub/linux/slackware/slackware/slackware
I have chosen a german mirror, you may get a faster download if you choose a mirror near you.
 
Old 04-29-2011, 02:29 PM   #11
Kubuntu
Member
 
Registered: Jun 2009
Location: Oviedo (Spain)
Distribution: Gentoo
Posts: 63

Original Poster
Rep: Reputation: 0
Ok, I'm downloading the repositories, and I copied the /etc/ directory into my home folder. I'll upgrade when the download finishes.
 
Old 04-30-2011, 12:55 PM   #12
Kubuntu
Member
 
Registered: Jun 2009
Location: Oviedo (Spain)
Distribution: Gentoo
Posts: 63

Original Poster
Rep: Reputation: 0
I've upgraded everything. But there're some files in /boot which are "vmlinuz" (which is in lilo.conf from the installation), "vmlinuz-generic-2.6.37.6", "vmlinuz-generic-smp-2.6.37.6-smp", "vmlinuz-huge-2.6.37.6" and "vmlinuz-huge-smp-2.6.37.6-smp". Have I to modify lilo.conf?

EDIT: Well, I've modified lilo.conf adding /boot/vmlinuz-generic-smp-2.6.37.6-smp, but now Slackware doesn't boot. Can I edit lilo.conf from my DVD of Slackware 13.1?

Last edited by Kubuntu; 04-30-2011 at 02:03 PM.
 
Old 04-30-2011, 02:10 PM   #13
Poprocks
Member
 
Registered: Sep 2003
Location: Toronto, Canada
Distribution: Slackware
Posts: 522

Rep: Reputation: 279Reputation: 279Reputation: 279
Did you remember to run /sbin/lilo after updating /etc/lilo.conf?

Yes, you can use a previously working lilo.conf. But like with all config files when moving from an older release to a newer one, you might want to run diff on the two files to see if there are any changes to the files other than the custom changes you have made. With such a venerable program like lilo, I doubt that would be the case, but it's always prudent to check.
 
Old 04-30-2011, 03:23 PM   #14
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
You're using a generic kernel read this ftp://ftp.gwdg.de/pub/linux/slackwar.../README.initrd

samac
 
Old 05-01-2011, 06:31 AM   #15
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 Kubuntu View Post
But what does happen with other packages as Chromium or VLC? I installed some of these packages with ./configure > make > sudo make install, not with sbopkg.
For future reference, Alien-Bob builds Slackware packages for vlc. You can get them here: http://slackware.org.uk/people/alien...ackbuilds/vlc/
He updates them when newer versions of vlc are released as well. They work perfectly as you would expect.
This will save you the need to compile vlc yourself.
 
  


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
[SOLVED] updating libc6 w/o upgrading Dutch Master Debian 4 05-17-2010 09:25 PM
Updating vs. Upgrading your OS SlowCoder Linux - General 6 06-02-2007 04:31 PM
centos4: updating vs upgrading pcandpc Linux - Enterprise 7 05-12-2006 05:57 PM
Updating packages from redhat - insatlling *.hdr packages jomy Linux - Networking 1 01-18-2005 08:36 AM
Updating/Upgrading RedHat 7.3? stonecrest Red Hat 2 10-31-2004 10:00 AM

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

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