Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 04:39 PM
Mahy
 
Posts: n/a
Default Slack and package management

Hello people,

I am currently in the process of upgrading and customizing my Slack. I
downloaded slapt-get, but after install, it told me it can't execute
/usr/<something>/slapt-get, so i tried swaret. It performed update and
upgrade (to "current"), downloading about 800 MB. After that, it
started dependency checking. I was shocked when it found hundreds of
missing libraries, that were nowhere to be found. After updatedb and
reboot, the system is quite crippled. It states that openssl is built
against a different version that I have now. Moreover, the X can't be
started, complaining about fonts, about libcairo and several other
things. I guess it all has something to do with swaret. Is it a way to
resolve it?? TIA for any advice.

Mahy

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 04:39 PM
Dan C
 
Posts: n/a
Default Re: Slack and package management

On Sat, 13 May 2006 10:33:03 -0700, Mahy wrote:

> I am currently in the process of upgrading and customizing my Slack. I
> downloaded slapt-get, but after install, it told me it can't execute
> /usr/<something>/slapt-get, so i tried swaret. It performed update and
> upgrade (to "current"), downloading about 800 MB. After that, it
> started dependency checking. I was shocked when it found hundreds of
> missing libraries, that were nowhere to be found. After updatedb and
> reboot, the system is quite crippled. It states that openssl is built
> against a different version that I have now. Moreover, the X can't be
> started, complaining about fonts, about libcairo and several other
> things. I guess it all has something to do with swaret. Is it a way to
> resolve it?? TIA for any advice.


LOL! Yeah, reinstall and forget about using those crappy "managers". As
often as not, your experience above is what happens. Use the built-into
Slackware package management, and avoid those third-party nightmares.

--
If you're not on the edge, you're taking up too much space.
Linux Registered User #327951

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 04:39 PM
alisonken1
 
Posts: n/a
Default Re: Slack and package management


Mahy wrote:
> Hello people,
>
> I am currently in the process of upgrading and customizing my Slack. I
> downloaded slapt-get, but after install, it told me it can't execute
> /usr/<something>/slapt-get, so i tried swaret. It performed update and

<SNIP>

Since you didn't mention it, just a reminder that all package managers
must be run as root.

I use slapt-get and gslapt on my machines with no problems. It sounds
like the /usr/sbin/slapt-get may not be set as executable (# chmod 744
/usr/sbin/slapt-get).

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 04:39 PM
Robby Workman
 
Posts: n/a
Default Re: Slack and package management

On 2006-05-13, Mahy <jkotuc@gmail.com> wrote:
>
> I am currently in the process of upgrading and customizing my Slack. I
> downloaded slapt-get, but after install, it told me it can't execute
> /usr/<something>/slapt-get, so i tried swaret. It performed update and
> upgrade (to "current"), downloading about 800 MB. After that, it
> started dependency checking. I was shocked when it found hundreds of
> missing libraries, that were nowhere to be found. After updatedb and
> reboot, the system is quite crippled. It states that openssl is built
> against a different version that I have now. Moreover, the X can't be
> started, complaining about fonts, about libcairo and several other
> things. I guess it all has something to do with swaret. Is it a way to
> resolve it?? TIA for any advice.



It's certainly possible to get your system back working properly, but
it's not something I'm willing to walk through here. It will involve
booting the Slackware installation cd (or perhaps the Slax livecd),
mounting your / partition (and other system partitions if applicable),
and using some combination of installpkg -root /somedir and/or tar -xzf
to make the system somewhat usable again. I'm guessing that you tried
to upgrade glibc in a multiuser runlevel, and that's one of your problems;
also, there have been quite a few *new* packages added to -current that
would not have been installed with an "upgrade."

I really wish people would realize that there is a very good reason why
Pat doesn't include slapt-get, swaret, et al in the base Slackware
installation (if anywhere at all): using those tools without understanding
how they work is a recipe for disaster. I have personal experience with
slapt-get, so I know that it can be a very *good* tool, but then, I also
understand how it works and I know its limitations.

As a general rule, a distribution update (10.1 --> 10.2 or 10.2 --> 11.0,
but this includes 10.2 --> -current) should never be done with an
automated tool. There will usually be a glibc and/or kernel upgrade, and
almost always new packages that need to be installed for some of the
existing ones' upgraded versions to work properly (see openldap-client
and samba in the -current cycle now). Automated tools will not (and
should not) just automatically install packages that are not already
installed on the system, and this is most likely why you saw so many
missing libraries. Along those same lines, packages are often removed
from the system during a release cycle (for example, see abiword during
this cycle), and although it won't affect whether your systems runs
correctly, housekeeping issues should be enough reason for you to want
those removed.

Finally, the last word on upgrading a Slackware system should logically
come from Pat himself, so here it is:
http://slackware.osuosl.org/slackwar...nt/UPGRADE.TXT

RW

--

http://rlworkman.net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-20-2008, 04:40 PM
Mahy
 
Posts: n/a
Default Re: Slack and package management

Wow, you've all been quite helpful. Thanks for the Pat's howto on
upgrading. Yes I ran everything as root. I didn't try chmod on
slapt-get executable, i was too perplexed when I found out it doesn't
work. Ok, i'll try to function without these tools. One more thing: the
package libcairo is really nowhere to be found on a mirror! Or am i
wrong again? How else do i get libcairo.so.2?

Mahy

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-20-2008, 04:40 PM
alisonken1
 
Posts: n/a
Default Re: Slack and package management



<SNIP>
> work. Ok, i'll try to function without these tools. One more thing: the
> package libcairo is really nowhere to be found on a mirror! Or am i
> wrong again? How else do i get libcairo.so.2?
>
> Mahy


libcairo is part of the cairo package.

If you do decide to use slapt-get, make sure you point to the >stable<
package repositories, not the >current< package repositories.

Once you get slapt-get running (with the appropriate configuration for
where packages are located), you can install the cairo package.

The package I currently have installed is cairo-1.0.2-i486-1frg (the
1frg indicates I installed the package from the FreeRock Gnome
repository).

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-20-2008, 04:40 PM
Mahy
 
Posts: n/a
Default Re: Slack and package management

Well, there's another question: How to (easily) upgrade to "current"
without any 3rd party util while minimizing the risk of landing with
bricked system? Thanks for advice.

Mahy

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-20-2008, 04:40 PM
Douglas Mayne
 
Posts: n/a
Default Re: Slack and package management

On Sat, 13 May 2006 10:33:03 -0700, Mahy wrote:

> Hello people,
>
> I am currently in the process of upgrading and customizing my Slack. I
> downloaded slapt-get, but after install, it told me it can't execute
> /usr/<something>/slapt-get, so i tried swaret. It performed update and
> upgrade (to "current"), downloading about 800 MB. After that, it
> started dependency checking. I was shocked when it found hundreds of
> missing libraries, that were nowhere to be found. After updatedb and
> reboot, the system is quite crippled. It states that openssl is built
> against a different version that I have now. Moreover, the X can't be
> started, complaining about fonts, about libcairo and several other
> things. I guess it all has something to do with swaret. Is it a way to
> resolve it?? TIA for any advice.
>
> Mahy
>

Swaret is not part of official slackware. There are a lot of threads
about its deficiencies, and how it can do harm to your system. The best
package management for slackware, especially for someone just starting
out, is just to learn how to do it manually and learn to use the package
manager. One way is to build your own copy of the slackware version you
intend to run. For you, that sounds like slackware-current.

I wrote this to someone else recently who was having trouble with swaret.
Cut and paste here.

Advice: in the future, do yourself a favor and learn how to do it
manually. Follow the instructions in the file (reference above) by
installing the critical packages first, then if you have a slackware
repository you can proceed by running a sequence like this:

for p in a ap d l n x xap;do
for i in $(find $p/. -type f | grep tgz$);do
echo Package: $i
upgradepkg --dry-run $i
done
done

If you pipe the output to a file, you can do more tweaking with individual
packages. You can remove packages don't want at all, or to make sure
packages are added, etc. By reviewing this output in advance you can
avoid some unexpected unpleasant surprises.

--
Douglas Mayne

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-20-2008, 04:40 PM
Martijn Dekker
 
Posts: n/a
Default Re: Slack and package management

In article <1147549556.344833.304680@u72g2000cwu.googlegroups .com>,
"Mahy" <jkotuc@gmail.com> wrote:

> How else do i get libcairo.so.2?


You can search for filenames within stock Slackware packages using the
package browser: http://www.slackware.it/en/pb/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-20-2008, 04:40 PM
Alan_C
 
Posts: n/a
Default Re: Slack and package management

"Mahy" <jkotuc@gmail.com> writes:

> Well, there's another question: How to (easily) upgrade to "current"
> without any 3rd party util while minimizing the risk of landing with
> bricked system? Thanks for advice.


current is the development version, the pre release version. 10.2 is the
latest release at this time.

***Next is how I keep Slackware-current up to date*** it's NOT how to upgrade**
perhaps my home brewed method anyways until I improve upon it. it works for me

(I start off with current as in why upgrade when I don't have to)a few ISO's of
current used to exist on the web but then I learned how to make my own ISO's.

http://uselesstree.org/live/tree/gro...mplete_Slacker

I've benefited from some of the info there. I don't use all of it -- for
instance I have my own Perl script that checks the changelog -- but I need to
write/program some more bells and whistles into it so it will auto update
itself once it has reported to me that package updates are available. Since I
don't manually edit/update it, I then took to merely using a bookmark in my web
browser to check via http the changelog once in a while.

I've an 80 GB USB external HD that stores my mirror. I just sync it via ftp
or rsync with a web mirror (of current) once in a while.

discretion needed on the next method. It works very fine but I've not been
doing it for very long (I'm sure some packages could not update via the next).

From changelog, I copy and paste into an editor such things as:

ap/cdrdao-1.2.1-i486-1.tgz: Upgraded to cdrdao-1.2.1.
ap/mysql-5.0.21-i486-1.tgz: Upgraded to mysql-5.0.21.

my editor can do regex replace to rid of unneeded so that I result in only
the paths and filenames, thus:

ap/cdrdao-1.2.1-i486-1.tgz
ap/mysql-5.0.21-i486-1.tgz

I save that as text file with date, thus:

slak_cur_upd051306.txt

Then as root I cd into the slackware directory of my local mirror.

Then (since I so far learned more of Perl than I learned of shell script) I
run a Perl script that reads my text file into an array and then hands off
to upgradepkg doing so one package at a time until the mentioned upgrade
list is exhausted.

You can tell that I use the script for more than just multiple
(and selective) upgradepkg

from slackware dir. of my local mirror, the command:

# perl_script slak_cur_upd051306.txt

#!/usr/bin/perl -w
use strict;

# http://download.kde.org/download.php
# my $base = 'ftp://ftp.oregonstate.edu/pub/kde/stable/3.5.2/contrib/Slackware/10.2/';
# my $base = 'ftp://mirrors.kernel.org/fedora/core/5/i386/iso/';
my $old = shift;
open(OLD, "<", $old) or die "cant open $old: $!";
my @lines = <OLD> ;
close(OLD) or die "cant close $old: $!";

foreach my $line ( @lines ) {
chomp($line);
# system("wget $base$line");
# system("wget $line");
# system("md5sum $line");
# system("identify $line");
system("upgradepkg $line");
} # end

--
abc Alan_Cu b c n u
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:58 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622