Actually, that's not a different solution, it's the PROPER solution. The original poster's snippet would happily remove any part of the package name that happens to start with -[0-9].
Packages that are affected on the system I'm on are compat-libstdc++-33, xorg-x11-fonts-ISO8859-1-75dpi, java-1.4.2-gcj-compat.
There is even an error in the other direction: The version of cdparanoia-libs-alpha9.8 isn't stripped because it doesn't start off with a digit.
(for the curious, this is on Red Hat Enterprise Linux Server 5.6)
different solution: rpm -qa --qf "%{n}\n"
ReplyDeleteActually, that's not a different solution, it's the PROPER solution. The original poster's snippet would happily remove any part of the package name that happens to start with -[0-9].
ReplyDeletePackages that are affected on the system I'm on are compat-libstdc++-33, xorg-x11-fonts-ISO8859-1-75dpi, java-1.4.2-gcj-compat.
There is even an error in the other direction: The version of cdparanoia-libs-alpha9.8 isn't stripped because it doesn't start off with a digit.
(for the curious, this is on Red Hat Enterprise Linux Server 5.6)
Wow, thanks. Learned something new again. Updating the post.
ReplyDelete