1. vim local.conf ... PACKAGE_CLASSES ?= "package_ipk" IMAGE_INSTALL_append = " perl-modules" IMAGE_FEATURES += "package-management ssh-server-dropbear" ... 2. bitbake core-image-minimal 3. runqemu qemux86 4. ssh target opkg remove perl --force-removal-of-dependent-packages ... Removing package perl-module-extutils-mm-dos from root... ... Removing package perl-module-extutils-mm-dos from root... You can force removal of packages with failed prerm scripts with the option: --force-remove No packages removed. Collected errors: * pkg_run_script: Internal error: perl-module-extutils-mm-dos has a NULL tmp_unpack_dir. * opkg_remove_pkg: not removing package "perl-module-extutils-mm-dos", prerm script failed ...
Merged into master: commit 99b0f382f98102272206d448e3394f2e660a9a57 Author: Hongxu Jia <hongxu.jia@windriver.com> Date: Wed Oct 8 20:16:36 2014 +0800 opkg: fix remove pkg with --force-removal-of-dependent-packages failed opkg remove perl --force-removal-of-dependent-packages ... Removing package perl-module-extutils-mm-dos from root... ... Removing package perl-module-extutils-mm-dos from root... You can force removal of packages with failed prerm scripts with the option: --force-remove No packages removed. Collected errors: * pkg_run_script: Internal error: perl-module-extutils-mm-dos has a NULL tmp_unpack_dir. * opkg_remove_pkg: not removing package "perl-module-extutils-mm-dos", prerm script failed ... While remove pkg with '--force-removal-of-dependent-packages', pkg may be added to remove list multiple times, add status check to make sure pkg only be removed once. [YOCTO #6819] (From OE-Core rev: 476f864b1564265469b5c9074c1f262bce21f119)