Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Package deletion does not delete the package pbi dirs

    Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
    3 Posts 2 Posters 1.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      phil.davis
      last edited by

      The PBI push-button-installer system keeps a database of what PBI packages are on the system. This is in /var/db/pbi . On nanobsd the /var mount point is only a RAM disk, it all disappears after a reboot. After installing a package, you can:

      /usr/local/sbin/pbi_info
      and get a list of the package components that were just installed.
      Various installation code uses this in its processing.
      After rebooting, the output is blank.
      Then, delete the package. Any use of /usr/local/sbin/pbi_info in the removal scripts won't be able to find any PBI data. But there are no error messages logged.
      Then look in:
      /usr/pbi/package-name
      e.g. /usr/pbi/squid-i386
      The files are all there.
      And the sym links to places like /usr/local/ are also there. The last squid.conf is still there.
      The GUI elements and startup have been modified so that none of it starts, so I guess it does no harm. If the package is installed again then the installation will overwrite all this anyway.
      Is this the intended design? Or is it just an accident due to /var/db/pbi disappearing?
      Is this likely to cause a problem some time later?

      As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
      If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Probably hadn't been observed by anyone using PBIs yet. Open a ticket in redmine and we'll see what can be done. I think for freebsd packages we keep that in /root or /conf and copy/link it back to /var somehow, but I could be misremembering that.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • P
          phil.davis
          last edited by

          Redmine ticket 2305 opened.

          As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
          If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.