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-03-2010, 09:43 PM   #1
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Question slackpkg upgrade-all: highlight a package, not showing "currently installed version"


Seems to me I encountered this before, and mentioned it in a thread somewhere/sometime but now I cannot remember what that thread was. I'm not sure that the last time, I wasn't imagining things...

Anyhow, I'm pretty sure, after 3+ years of using slackpkg, that it *usually* shows an informational line at the bottom of the console/terminal, such that, when using "upgrade-all", you can see on the status line the currently installed version of the package you've got highlighted. And using that information, you can see whether or not you're actually upgrading to a newer version, or an older version, of the package.

I am not seeing any such information line now. Someone tell me that it *is* supposed to be there!? Or has it 'gone away', or was it never there???

I'm running mostly -current64 at this moment ('mostly' == all but Xorg & Xorg-mouse|keyboard), and slackpkg shows its version as 2.80.2 (same version as last time I asked about this :/). Everything is working great otherwise... It's just, I'm sure there is usually a line there telling the currently installed version.

I ran slackpkg in Eterm, xterm, and rxvt to make sure it wasn't a particular terminal.

Thanks
Sasha
 
Old 04-03-2010, 10:20 PM   #2
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 201Reputation: 201Reputation: 201
Thanks! I never noticed it, but yes you are correct, at the bottom of the screen the currently installed package is shown when highlighting a proposed "upgrade".

P.S. There is some wierdness going on with the current updates. The packages seem to have made the mirrors, but for many of the mirrors the the changelogs do not reflect the changes. I had to switch to the tds mirrors to get the right changelog+packages.

Last edited by damgar; 04-03-2010 at 10:22 PM.
 
Old 04-03-2010, 10:21 PM   #3
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Glad you see it! I still don't :/ lol..
 
Old 04-03-2010, 10:25 PM   #4
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 201Reputation: 201Reputation: 201
Have you tried killing X and running it?
 
Old 04-03-2010, 10:48 PM   #5
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Hmm, no I haven't tried that.. But I cannot see what influence that might have on things? I'll try slackpkg from a VT and see how that goes.

As for the changelog situation -- thanks for mentioning that; I have been wondering, since I *thought* that there had been some changes lately. I'm currently using osuosl but may try another mirror or two.
EDIT #2: @ damgar, thanks again for that-- I just changed mirrors and have all sorts of fun things to upgrade again

Sasha

EDIT #1: Just tried slackpkg in a VT -- same thing, no information line at the bottom but it'll have to wait till next time I log out, to try with X not running.. Never know, I've already found one thing that doesn't work right when X is running (mc in a VT is screwed when X is running) so who knows..

Last edited by GrapefruiTgirl; 04-03-2010 at 11:11 PM.
 
Old 04-04-2010, 08:35 AM   #6
XGizzmo
Member
 
Registered: Mar 2007
Distribution: Slackware
Posts: 264

Rep: Reputation: 68
That is just odd, It also works here with an up to date -current. The only things I can see that may be causing it are: dialog somehow broken, some kind of UTF issue, or /bin/sh symlinked to a incompatible shell. If you can run slackpkg upgrade-all and open a second console and copy the dialog.tmp file out of /tmp/slackpkg-<somehash> (not 100% sure on the name and path) and post it online.
 
Old 04-04-2010, 09:08 AM   #7
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Interestingly, after updating freshly from another mirror and installing some stuff, it now works correctly but I have no idea why. I'm going to have to keep watch on this and see if I can figure out when/why it doesn't work, and what then makes it work correctly again. I am not sure if simply updating from the other mirror fixed it, or installing/upgrading something fixed it (forgot to pay attention at that point :/ ).

Sasha
 
Old 04-04-2010, 09:38 AM   #8
sahko
Senior Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 1,041

Rep: Reputation: Disabled
Quote:
Originally Posted by XGizzmo View Post
/bin/sh symlinked to a incompatible shell
Sasha, do you still have dash linked to /bin/sh?

edit: Nevermind, you seem to have solved it.
 
Old 04-04-2010, 09:38 AM   #9
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
sahko, nope, not for quite some time now -- slackpkg doesn't work At ALL with that setup.
 
Old 04-04-2010, 12:02 PM   #10
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 89
Slackpkg doesn't show the current version of the package if there are many packages to upgrade (like at March 1st, when we had a whole bunch of updates).

This is set somewhere in the code of Slackpkg, probably to speed up things or something.
Things will upgrade normally though, and you can make smaller selections by using "slackpkg upgrade kernel" etc...
 
1 members found this post helpful.
Old 04-04-2010, 12:06 PM   #11
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
neils -- thanks for that information.

But it doesn't seem to jive with what I was seeing: for example, before I actually changed mirrors and GOT a new selection of stuff that needed to be upgraded, I had only three things in my "slackpkg upgrade-all" menu, which I had been opting not to update, for a couple weeks now. I would think that, if what you say applies, then having only 3 items in the list, I would have the information line at the bottom.

Any further thought in this direction are welcome! Thanks.
Sasha
 
Old 04-04-2010, 12:14 PM   #12
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 89
GrapefruiTgirl: Yes... That's what happens in my case at least.

I have some packages (like cups) that I did not upgrade yet so they always show up. And now, with only three packages in "upgrade-all", I see the "currently installed" line.

I'm running the 2.81beta version of Slackpkg (available on its site), that is faster too. Have you tried it?

Niels
 
1 members found this post helpful.
Old 04-04-2010, 12:20 PM   #13
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Hmm.. Great niels, thanks; maybe I am just seeing 'normal' behavior, but I only occasionally notice that the informational line is missing and it sets me off

As for 2.81beta of slackpkg.. something tells me that I *did* have it running at one point, but evidently for some reason I've reverted back to 2.80.2 -- and I think I know why: probably after my first totally screwed upgrade to -current, having used my installation DVD and whatever else to repair the damage, I reinstalled the previous version along with everything else that was restored to the previous version. I'll look into that again.

I think I'm satisfied enough to [SOLVED] this thread (if I discover anything that changes that, I'll un-SOLVED it); and thanks again for that info about the info line not showing when there's a large amount of pending upgrades. I didn't know that.

Sasha

Last edited by GrapefruiTgirl; 04-04-2010 at 12:21 PM. Reason: typo : neils
 
Old 04-04-2010, 04:21 PM   #14
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 89
Just an update...
The function that causes the "currently installed" line not to show up is in /usr/libexec/slackpkg/functions.d/dialog-functions.sh:
Code:
if [ $(wc -c $TMPDIR/dialog.tmp | cut -f1 -d\ ) -ge 40000 ]; then
        mv $TMPDIR/dialog.tmp $TMPDIR/dialog2.tmp
        awk '{ NF=3 ; print $0 }' $TMPDIR/dialog2.tmp > $TMPDIR/dialog.tmp
        HINT=""
fi
I changed the original value from 19500 to 40000 and now the line with the currently installed version shows up even with the large upgrade of May 1st.

It works fine on a recently modern system (~2 years old). It might be slower on older systems, or systems with less memory...
 
1 members found this post helpful.
Old 04-04-2010, 05:48 PM   #15
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
That's handy to know, niels.
Something to keep in mind for personal use (I don't think I'll have a memory problem..), and which I may just do when I get around to hacking at slackpkg a bit to see if I can de-Bashism it. (I looked briefly one day some time ago, with that in mind, and decided it could definitely wait for some other time! )

[slightly OT]
Anyhow, I love slackpkg, but it could use a turbo-boost and a few hacks (someone else posted a thread a few months or so ago, about making slackpkg faster I believe.. If I'm remembering right.... I must look that up as well.)
[/slightly OT]

Thanks again,
Sasha
 
  


Reply

Tags
slackpkg, upgrade


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
slackpkg 2.80.2 not showing "currently installed" version of pkg at bottom of console GrapefruiTgirl Slackware 10 09-23-2009 10:18 AM
Boost "slackpkg upgrade-all" performance grissiom Slackware 25 09-20-2009 10:37 AM
Using "slackpkg upgrade-all" ryan858 Slackware 7 08-31-2009 04:14 PM
[SOLVED] "slackpkg upgrade-all" finishes with WARNING Bruce Hill Slackware 4 08-01-2009 09:06 PM
Want to upgrade my v12.0 to 12.1 "there is no installed package named glibc-solib-*" Mr.Newbie Linux - Newbie 1 11-06-2008 05:22 AM


All times are GMT -5. The time now is 06:28 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration