[oi-dev] How to kill old sfe package meta-data?

Hi Oh thanks for noticing. Yes they should be there. If they are not one would most probably need to reinstall the os. I made a script that should be able to do that online :) #!/usr/bin/bash IMG_NAME="online_reinstall" IMG_MNT="/mnt" beadm create ${IMG_NAME} beadm mount ${IMG_NAME} ${IMG_MNT} rm -rf ${IMG_MNT}/* pkg image-create --full -p openindiana.org=http://pkg.openindiana.org/hipster/ ${IMG_MNT} cp -a /var/pkg/pkg5.image ${IMG_MNT}/var/pkg/pkg5.image pkg -R ${IMG_MNT} install -v $(pkg list -H 'pkg://openindiana.org/*' | awk '{printf "pkg://openindiana.org/%s ", $1}') rsync -x -avp /etc/ ${IMG_MNT}/etc beadm unmount ${IMG_NAME} beadm activate ${IMG_NAME If you have something installed under bootenv which is not in it's own dataset you will need to copy that over too. Or reinstall the svr4 package if there are any. Greetings Till On 8/31/18 9:22 AM, Alexander Pyhalov via oi-dev wrote: > ________________________________________ > От: Till Wegmüller <toasterson at gmail.com> > Отправлено: 31 августа 2018 г. 0:43 > Кому: oi-dev at openindiana.org > Тема: Re: [oi-dev] How to kill old sfe package meta-data? > >> Hrmm ips does aparently not keep any Manifests locally. Which is not >> nice. One would assume that IPS would keep more data in it's sate >> database. Considering it always tries to ensure the system is in a >> specific state. > > > Hi. This is not true. > When you do pkg unset-publisher, you can see at https://github.com/OpenIndiana/pkg5/blob/oi/src/modules/client/image.py#L3391 that pkg builds a list of manifests to keep and doesn't remove them. > > Gordon, does /var/pkg/publisher/sfe/pkg/ contain manifests of installed packages? > > _______________________________________________ > oi-dev mailing list > oi-dev at openindiana.org > https://openindiana.org/mailman/listinfo/oi-dev >