How and When to removepkg in -current
All --
There were numerous Removed Packages in this morning's -current ChangeLog ( below ) I don't use an advanced Package Manager so I intend to `removepkg` then `upgradepkg --install-new` the other Upgraded Packages. Opinions wanted: is that the best way to go about it ( remove first then upgrade ) ? Thanks ! -- kjh These are the Removed Packages from last night: Code:
# gawk -F ':' '{ if ( match( $1, /^+-----*+/ )){ exit( 0 ) } ; if ( ! match( $2, / *Removed/ )){ next } ; Pkg = $1 ; gsub( /^[a-z][a-z]*\//, "", Pkg ) ; gsub( /.txz$/, "",Pkg ) ; print " removepkg " Pkg " \t\t# " $1 }' ChangeLog.txt |
Caveat: I don't run slackware-current at the moment.
I don't think that the order matters. To feel 100% safe I would just do that in runlevel 3 and check that all updates be successfull before starting X again. If I understand well xorg-proto xorgproto replaces all the other X prototype packages. |
Quote:
While I always do X-related updates from a runlevel 3 session, it sure is helpful to spell it out in this thread ! -- kjh |
I mistakenly wrote xorg-proto instead of xorgproto, sorry.
And while I am at it, as I am a big fan of sed: Code:
sed -n ' |
Quote:
Very nice script, Didier Spaier ! Thanks again ! -- kjh |
They are just header files, only needed when compiling X stuff. So you don't need to exit X or change runlevels. Just don't compile X programs during the upgrade...
|
Quote:
I'll go ahead rebuild SBo System/xrdp and neutrinolabs/xorgxrdp 'just in case'. Thank you ! -- kjh |
On a side note, does anyone know why slackware
removed the various proto packages recently? Example: http://www.slackware.com/changelog/c...php?cpu=x86_64 "x/bigreqsproto-1.1.2-noarch-1.txz: Removed. x/compositeproto-0.4.2-noarch-1.txz: Removed. x/damageproto-1.2.1-noarch-1.txz: Removed." etc... |
kjh, I would always add and upgrade before removing.
If the upgrade procedure needs something that is being replaced, you want to have the new stuff installed before you remove the old stuff, otherwise the upgrade procedure will break and you won't be able to complete it. Exactly the same considerations apply whether you're doing it manually or otherwise, hence the standard slackpkg rigmarole: slackpkg update ; slackpkg install-new ; slackpkg upgrade-all ; slackpkg clean-system Meanwhile: Quote:
Code:
x/xorgproto-2018.4-x86_64-1.txz: Added. |
Quote:
Your logic makes perfect sense. All done now via a remote ssh session ( with the box booted at runlevel 3 ). I did rebuild xrdp and xorgxrdp -- they recompiled and run fine although I am not sure the Removed Packages and the new xorgproto Package had any effect on them. I am able to log into KDE via RDesktop and at the Console via startx so ... [SOLVED] ! Quote:
EDIT: P.S. I meant to link this: https://www.archlinux.org/packages/extra/any/xorgproto/ from the Arch Site. And as always, thanks to all who replied. -- kjh |
Quote:
Code:
stale-pids () Additionally even if something like xorg is upgraded, the old xorg session should still mostly work and if this worries anyone closing the xorg session and starting a new one should resolve this. |
Thanks for the very useful stale_pids() function, orbea !
-- kjh |
I didn't paste it correctly unfortunately so I updated my post.
|
Quote:
I just realized that it can be done twice (before and after the removal of the old package) Here is the end of upgradepkg, on Slackware version 14.2: Code:
# Print a banner for the current upgrade: |
But Didier, upgradepkg can't do that dance when the 'old' packages have already been removed :)
Quote:
|
All times are GMT -5. The time now is 08:28 PM. |