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

    List installed packages in CLI on CE 2.6.x and 2.7.x version of pfsense

    Scheduled Pinned Locked Moved Off-Topic & Non-Support Discussion
    5 Posts 4 Posters 1.2k 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.
    • M
      mc.gyver.reboot
      last edited by

      Hello,

      I'm looking to list the installed packages on my pfsense in the CLI.
      I use version 2.6.x CE and version 2.7.x CE of pfsense.

      When I launch the command below on a version 2.7.0 I have the list of the packages.

      pkg version
      

      If I run the same command on version 2.6.0 it doesn't work, here is the error message I get:

      ld-elf.so.1: /lib/libc.so.7: version FBSD_1.7 required by /usr/local/sbin/pkg not found
      

      Thanks

      S 1 Reply Last reply Reply Quote 0
      • S
        SteveITS Galactic Empire @mc.gyver.reboot
        last edited by

        @mc-gyver-reboot Is your 2.6 router set to use the Previous Stable update branch?

        Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
        When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
        Upvote 👍 helpful posts!

        1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          Use pkg-static so something like:

          [2.7.1-RELEASE][admin@t70.stevew.lan]/root: pkg-static info -x pfsense-pkg
          pfSense-pkg-Cron-0.3.8_3
          pfSense-pkg-System_Patches-2.2.7_2
          pfSense-pkg-nmap-1.4.4_7
          pfSense-pkg-openvpn-client-export-1.9.2
          pfSense-pkg-pfBlockerNG-devel-3.2.0_6
          pfSense-pkg-suricata-7.0.2
          pfSense-pkg-syslog-ng-1.16
          pfSense-pkg-tftpd-0.1.3_4
          

          Steve

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

            If you want the GUI package names instead, you can also use the listpkg playback script:

            : pfSsh.php playback listpkg
            Installed packages:
            acme-0.7.5                     Automated Certificate Management Environment, ...
            IPsec Profile Wizard-1.2       IPsec profile wizard for iOS and Windows Clien...
            OpenVPN Client Export Utility-1.9_1 Allows a pre-configured OpenVPN Windows C...
            System Patches-2.2.6           A package to apply and maintain custom system ...
            

            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 3
            • M
              mc.gyver.reboot @stephenw10
              last edited by

              @stephenw10
              Thanks!
              This is exactly what I was looking for.

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