Testing Env: Host: Ubuntu 10.04 LTS Kernel: 2.6.32-21-generic Poky gitinfo(used to build qemu-native): 4ae9c0785e22c222cb7a80e6c9575f58858eac5c All images file from http://autobuilder.pokylinux.org/milestone/20101018/. rpm command can be used to remove packages on targets. For poky images, there are some packages named "task-*". These packages can not be removed with rpm command with full name showed by command "rpm -qa". For example, the qemux86 images show there is a package named "task-poky-tools-profile-1.0-r8.qemux86". But when rpm -e to remove it, it reports there is no such package installed. ####### root@qemux86:~# rpm -qa | grep task-poky-tools-profile task-poky-tools-profile-1.0-r8.qemux86 root@qemux86:~# rpm -e task-poky-tools-profile-1.0-r8.qemux86 error: package task-poky-tools-profile-1.0-r8.qemux86 is not installed #######
Smilimar issue also happens on emenlow and netbook: ######### root@atom-pc:~# rpm -e powertop-1.13-r0.core2 error: package powertop-1.13-r0.core2 is not installed #########
does the following works? rpm -e task-poky-tools-profile rpm -e powertop
Yes. (In reply to comment #2) > does the following works? > rpm -e task-poky-tools-profile > rpm -e powertop
This is likely related to the architecture mapping located in the rpmns.c. We'll need to evaluate this for post 0.9. (I don't see this as a truly serious bug, more of an annoyance at this point.) The normal way to work with RPM packages is to pass commands and ignore the version and arch components of the name.
Tracked at https://bugs.launchpad.net/rpm/+bug/667415
This has been resolved in the latest version of the RPM changes. I believe that the fix to the platform file has resolved this, but I'm not sure if it was that change.
May I assume that your /etc/rpm/platform pattern woes have diminished in intensity? ;-) Its still on my todo++ stack to look at ... just I'm swamped.
Yes. The fix changes the platform file to: <default-arch-of-target>-poky-linux-gnu <compat arch1>-.*-linux.* <compat arch2>-.*-linux.* ... <compat archN>-.*-linux.*