LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   slackpkg update (http://www.linuxquestions.org/questions/slackware-14/slackpkg-update-948349/)

ibwew 06-03-2012 06:34 PM

slackpkg update
 
I usually update my Slack installation every weekend if there are updates available. So today I noticed we had some upgrades and was glad to see "iftop" had been added. However when I ran "slackpkg update" it showed the system was up to date. OK...I figured maybe I'd updated and didn't remember, so I tried running "iftop" but no joy. Then I switched mirrors thinking maybe the one I was using was having issues but it still showed I was up to date. Any ideas??

willysr 06-03-2012 06:39 PM

please check if you are using -Current repository instead of -Stable

ibwew 06-03-2012 06:53 PM

BINGO !! Thanks Willy.......DUH ! - I clicked on the -current changelog instead of -stable !! Thanks !!!!!

kingbeowulf 06-03-2012 06:57 PM

odd - same here. 'slackpkg search iftop' finds it in package list but shows [uninstalled] for both slackware-current. Just upgraded this morning. my /etc/slackpkg config look ok. I don't see any obvious reason why it was not picked up.

Ahh... if you 'slackpkg install-new' iftop and calligra shows up. That is the correct behavior. "upgrade" just upgrades previously installed packes but does not add new packages. See 'slackpkg help'

All is well - if you RTFM!

Edit: of course "stable" per Willy had to be the correct answer ;-) I often miss the obvious!

NoStressHQ 06-04-2012 04:10 AM

The real workflow is

Code:

# slackpkg update
# slackpkg install-new    <- VERY IMPORTANT ON CURRENT!!!
# slackpkg update-all

It's written in the Slackpkg documentation...

Cheers

TobiSGD 06-04-2012 08:18 AM

Quote:

Originally Posted by NoStressHQ (Post 4694941)
The real workflow is

Code:

# slackpkg update
# slackpkg install-new    <- VERY IMPORTANT ON CURRENT!!!
# slackpkg update-all

It's written in the Slackpkg documentation...

Cheers

It should be
Code:

slackpkg upgrade-all

brianL 06-04-2012 09:03 AM

Quote:

Originally Posted by TobiSGD (Post 4695051)
It should be
Code:

slackpkg upgrade-all

Without the red letters, of course. :)

markush 06-04-2012 11:30 AM

Quote:

Originally Posted by brianL (Post 4695101)
Without the red letters, of course. :)

It would work with red letters to. How one can obtain red letters on the commandline is left as an excercise to the reader ;)

Markus

Z038 06-06-2012 07:46 PM

Quote:

Originally Posted by markush (Post 4695215)
It would work with red letters to. How one can obtain red letters on the commandline is left as an excercise to the reader ;)

Markus


For a tty terminal, this will do the trick.

Code:

setterm -foreground red
This works for xterm. It's not my favorite terminal emulator.

Code:

xterm -fg red
This would change just the color of the prompt in a terminal emulator running bash.

Code:

export PS1="\e[1;31m\$ \e[m"
I like using the konsole terminal emulator under KDE, but I can't figure out how to get a red foreground color. Anyone know?

ReaperX7 06-06-2012 11:45 PM

Whenever you perform a major update to Slackware you should run the following (in my opinion anyway)...
Code:

slackpkg system-clean
...to remove old third party packages (at least remove packages mostly that are tied to the kernel if a kernel update was announced, or replacements that are officially added to the main distribution) and then, as stated above, you should run...
Code:

slackpkg update
slackpkg install-new
slackpkg upgrade-all

...in that order to avoid problems.

However, always check the Changelog to look for [added] packages as often there aren't too many "new" packages, unless you are on the -current distribution, and also occasionally check for [removed] packages as well to uninstall anything taken out of the distribution as well.

NoStressHQ 06-07-2012 03:22 AM

Quote:

Originally Posted by TobiSGD (Post 4695051)
It should be
Code:

slackpkg upgrade-all

Wooops ! :)

Sorry... That's what happen when you work to long on M$Window$...

markush 06-07-2012 03:32 AM

Quote:

Originally Posted by ReaperX7 (Post 4697471)
Whenever you perform a major update to Slackware you should run the following (in my opinion anyway)...
Code:

slackpkg system-clean


...to remove old third party packages (at least remove packages mostly that are tied to the kernel if a kernel update was announced, or replacements that are officially added to the main distribution) and then, as stated above, you should run...
Code:

slackpkg update
slackpkg install-new
slackpkg upgrade-all

...in that order to avoid problems.

Well, the correct command is
Code:

slackpkg clean-system
and note that when doing clean-system at first, you may possibly break your system. As far as I remember it is recommended to
Code:

slackpkg install-new
slackpkg upgrade-all
slackpkg clean-system

in this order.

Markus


All times are GMT -5. The time now is 11:51 PM.