SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Last edited by Didier Spaier; 03-13-2018 at 08:11 AM.
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 replaces all the other X prototype packages.
Thanks for input and a BIG THANKS for the runlevel 3 reminder Didier Spaier !
While I always do X-related updates from a runlevel 3 session, it sure is helpful to spell it out in this thread !
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...
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...
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:
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:
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:
Originally Posted by 55020
Meanwhile:
The answer is right there in the ChangeLog. They're all now bundled up into one package.
Code:
x/xorgproto-2018.4-x86_64-1.txz: Added.
Thanks ... while I did see the new xorgproto Package, you saved me a ton of google-time
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.
This is not required. This function someone else (I don't recall who) posted here at LQ a while ago should report any stale pids from programs that have been upgraded and not restarted.
Code:
stale-pids ()
{
if [ "$1" = '-v' ]; then
find -H /proc/{1..9}*/map_files -type l -ilname '*lib*.so* (deleted)' -printf '%h %l\n' 2> /dev/null | sed -e 's|/proc/||;s|/map_files||';
else
find -H /proc/{1..9}*/map_files -type l -ilname '*lib*.so* (deleted)' -printf '%h\n' 2> /dev/null | cut -f3 -d'/';
fi | sort -u | grep --color=auto -F ''
}
Edit: Fixed the function which didn't paste correctly...
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.
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.
Isn't that the purpose of the pre-installation in /sbin/upgradepkg?
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:
cat << EOF
+==============================================================================
| Upgrading $OLD package using $INCOMINGDIR/$NNAME
+==============================================================================
EOF
# Next, the new package is pre-installed:
if [ "$VERBOSE" = "verbose" ]; then
/sbin/installpkg $INCOMINGDIR/$NNAME
RETCODE=$?
else
echo "Pre-installing package $NEW..."
/sbin/installpkg $INCOMINGDIR/$NNAME 1> /dev/null
RETCODE=$?
fi
# Make sure that worked:
if [ ! $RETCODE = 0 ]; then
echo "ERROR: Package $INCOMINGDIR/$NNAME did not install"
echo "correctly. You may need to reinstall your old package"
echo "to avoid problems. Make sure the new package is not"
echo "corrupted."
sleep 30
# Skip this package, but still try to proceed. Good luck...
continue;
fi
# Now, the leftovers from the old package(s) can go. Pretty simple, huh? :)
for rempkg in "$ROOT/var/log/packages/"*"-$TIMESTAMP"; do
if [ "$VERBOSE" = "verbose" ]; then
/sbin/removepkg "${rempkg##*/}"
else
/sbin/removepkg "${rempkg##*/}" | grep -v 'Skipping\.\|Removing files:'
fi
done
echo
# Again! Again!
# Seriously, the reinstalling of a package can be crucial if any files
# shift location, so we should always reinstall as the final step:
if [ ! "$NOT_PARANOID" = "true" ]; then
/sbin/installpkg $INCOMINGDIR/$NNAME
fi
echo "Package $OLD upgraded with new package $INCOMINGDIR/$NNAME."
ERRCODE=0
done
if [ ! "$DRY_RUN" = "true" ]; then
echo
fi
exit $ERRCODE
Isn't this enough to make order of commands unimportant?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.