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)
This assumes you have Android Debug Bridge (ADB) installed. This will pull all files from a directory in an Android phone. cd /path/to/destination/directory adb pull /path/to/source . As Julian says, "Easy-peasy, lemon squeezy." (I use this, by the way, since the Nexus 5 and OS X Mavericks refuse to work together in USB mode.)
Usually, you'll need root , like so: sudo /sbin/fdisk -l | grep -E "^Disk" But you can also use this: printf "%.1f GB\n" $(echo "`cat /sys/block/sd*/size` * 512 / 1000000000" | bc -l)
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