LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Updating Slackware (https://www.linuxquestions.org/questions/slackware-14/updating-slackware-901633/)

scam 09-07-2011 01:14 PM

Updating Slackware
 
Hi all, I was reading this http://lwn.net/Articles/457899/rss which made me update slackpkg, which said changelog.txt was up to date. But looking at http://www.slackware.com/security/vi...ecurity.450340 my version of firefox isn't the version shown in the patches?

/var/log/packages/mozilla-firefox-5.0.1-i486-1_slack13.37

Can anyone explain why? ...thanks :)

apeitheo 09-07-2011 01:21 PM

The mirror that you have selected in /etc/slackpkg/mirrors probably hasn't synced with the official slackware server yet, so either give it a few days or try picking another mirror. I'm using the mirrors.usc.edu mirror, and it has the latest security patches.

scam 09-07-2011 01:24 PM

Thanks apeitheo, I'll try another mirror. :)

Konphine 09-07-2011 02:50 PM

I don't think that's it.

If you look under /etc/slackpkg/mirrors you'll see that the mirror link is probably something like:

Code:

ftp://ftp.isu.edu.tw/pub/Linux/Slackware/slackware64-13.37/
What you need is:

Code:

ftp://ftp.isu.edu.tw/pub/Linux/Slackware/slackware-current/
slackware-current is the mirror that contains the newest releases of certain programs, including Mozilla Firefox (6.0.2 is in slackware-current).

ponce 09-07-2011 02:53 PM

probably because it's a security update, mozilla-firefox-6.0.2 is also between 13.37 patches.

BCarey 09-07-2011 09:09 PM

Quote:

Originally Posted by Konphine (Post 4464173)
I don't think that's it.

If you look under /etc/slackpkg/mirrors you'll see that the mirror link is probably something like:

Code:

ftp://ftp.isu.edu.tw/pub/Linux/Slackware/slackware64-13.37/
What you need is:

Code:

ftp://ftp.isu.edu.tw/pub/Linux/Slackware/slackware-current/
slackware-current is the mirror that contains the newest releases of certain programs, including Mozilla Firefox (6.0.2 is in slackware-current).

You should be very careful doing this, or not do it at all. Many (most?) packages from current will not run on 13.37, and you will easily bork your system this way. I think that Firefox is a repackaged binary, so it _might_ work in this case, but for the most part mixing 13.37 and current is just asking for trouble. 6.02 is available in the /patches directory for 13.37. If you really want the newest releases of programs which are in current but not 13.37 you should either try to build them yourself on your 13.37 system or upgrade the whole system to current with the understanding that current is by its nature unstable.

Brian

ReaperX7 09-07-2011 10:38 PM

Did you run "slackpkg update" before running "slackpkg upgrade-all"?

And yes, use the tree that came with your distribution. If you have 13.37 use 13.37. If you have Current use Current. Never mix and match.

hitest 09-07-2011 10:43 PM

Quote:

Originally Posted by Konphine (Post 4464173)

Code:

ftp://ftp.isu.edu.tw/pub/Linux/Slackware/slackware-current/

No. That is poor advice as the OP will then inadvertently upgrade his/her unit to slackware-current (the development branch of slackware). The best advice is to wait until your present mirror syncs with the official slackware mirror or choose a more up to date mirror. I use this mirror for slackware 13.37.

http://mirrors.usc.edu/pub/linux/dis...ackware-13.37/

andrewthomas 09-07-2011 10:46 PM

You haven't inadvertently changed your PRIORITY in your slackpkg.conf?

Code:

PRIORITY=( patches %PKGMAIN extra pasture testing )

scam 09-08-2011 02:09 AM

The only things I alter are /etc/slackpkg/slackpkg.conf
line #77
DELALL=off

And uncomment a mirror in /etc/slackpkg/mirrors. I've never noticed this before, just reading http://lwn.net/Articles/457899/rss made me notice my version of firefox wasn't the same as the patch. When I update I do...

slackpkg update
slackpkg upgrade-all
slackpkg install-new

But once I changed mirrors it worked.

NoStressHQ 09-08-2011 02:38 AM

Quote:

Originally Posted by scam (Post 4464911)
When I update I do...

slackpkg update
slackpkg upgrade-all
slackpkg install-new

Wrong order... You should instead (moreover when you're on current):

Code:

slackpkg update
slackpkg install-new    # <- this first is recommended
slackpkg upgrade-all

install-new might installs dependencies or tools required for the following upgrade-all

And optional:
Code:

slackpkg clean-system  # <- if on current or upgrading from a previous version...
Btw, you can upgrade from versions using slackpkg, but you should first upgrade packages in a specific order which should be explained in the UPGRADE.TXT. And as said, it's not recommended to work with current, although if you don't rush on the last minutes updates and check this forum, you should be able to maximize your chance to have something quite solid :).

scam 09-08-2011 03:29 AM

Will do in future NoStressHQ, thanks :)

hitest 09-08-2011 06:56 AM

Quote:

Originally Posted by NoStressHQ (Post 4465019)
And as said, it's not recommended to work with current, although if you don't rush on the last minutes updates and check this forum, you should be able to maximize your chance to have something quite solid :).

Agreed. If you're going to run slackware-current you are expected to be able to trouble shoot and solve some problems on your own. It is a very good idea to read the current changelog before you add new updates as there will on occasion be information to help you to avoid pitfalls, gotchas.


All times are GMT -5. The time now is 03:15 PM.