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

    Can't add curl package?

    Scheduled Pinned Locked Moved General pfSense Questions
    15 Posts 3 Posters 5.1k 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.
    • D Offline
      dalesd
      last edited by

      Yes, Steve, that works. I get the same output as you.

      [2.1-RELEASE][admin@pfsense.localdomain]/root(17): fetch -o /dev/null http://updates.pfsense.org/_updaters/version
      /dev/null                                     100% of   12  B  212 kBps
      
      
      1 Reply Last reply Reply Quote 0
      • stephenw10S Offline
        stephenw10 Netgate Administrator
        last edited by

        What about the actual package file:

        [2.1.1-PRERELEASE][root@pfsense.localdomain]/root(5): fetch -o /dev/null ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.3-release/Latest/curl.tbz
        /dev/null                                     100% of 1291 kB  479 kBps
        
        

        Steve

        1 Reply Last reply Reply Quote 0
        • D Offline
          dalesd
          last edited by

          Nope.

          [2.1-RELEASE][admin@pfsense.localdomain]/root(18): fetch -o /dev/null ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.3-release/Latest/curl.tbz
          fetch: ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.3-release/Latest/curl.tbz: Can't open data connection
          
          
          1 Reply Last reply Reply Quote 0
          • D Offline
            dalesd
            last edited by

            Ok, that got me thinking. I tuned off my VPN and I was able to install both packages.

            Problem solved, I think.

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

              Some odd routing going on perhaps.  ;)

              Steve

              1 Reply Last reply Reply Quote 0
              • D Offline
                dalesd
                last edited by

                So, maybe it's not working as I thought.

                
                [2.1-RELEASE][admin@pfsense.localdomain]/var/log(46): pkg_add -r curl           
                Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.3-release/Latest/curl.tbz... Done.
                pkg_add: package 'curl-7.24.0' or its older version already installed
                [2.1-RELEASE][admin@pfsense.localdomain]/var/log(47): curl                      
                curl: Command not found.
                
                

                What's going on?

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

                  Either you already installed it or pfSense already has a newer version of curl that has been included for some feature or security update. It's easy to cause problems in pfSense by installing FreeBSD packages. pfSense has many, many patches from the FreeBSD release and if you overwrite those bad things happen.  ;)

                  Steve

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    dalesd
                    last edited by

                    So how do I get curl working?

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

                      What's not working about it if it's already installed? What are you trying to do? Not that I have much experience using curl.  ;)

                      Steve

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        dalesd
                        last edited by

                        When I run the curl command, I just get "command not found"

                        I'm trying to get port forwarding to work with PIA.  Following the instructions here:

                        https://forum.pfsense.org/index.php/topic,71725.msg399818.html

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

                          What other packages do you have installed on that box, either pfSense or FreeBSD packages?

                          You might have to specify the path to curl if it's not in the system path. You'll notice the script specified a whole host of directories.

                          Steve

                          1 Reply Last reply Reply Quote 0
                          • D Offline
                            dalesd
                            last edited by

                            Of course, the path! Thanks. I'll specify the path and see how that goes.  Thanks.

                            1 Reply Last reply Reply Quote 0
                            • B Offline
                              bryan.paradis
                              last edited by

                              If you installrf curl and command is not found just try a simple rehash.

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