github.com/hanks177/podman/v4@v4.1.3-0.20220613032544-16d90015bc83/build_osx.md (about) 1 # Building the Podman client on macOS 2 3 The following describes the process for building the Podman client on macOS. 4 5 ## Install brew 6 Podman requires brew -- a package manager for macOS. This will allow additional packages to be installed that are 7 needed by Podman. See the [brew project page](https://brew.sh/) for installation instructions. 8 9 ##Install build dependencies 10 Podman requires some software from brew to be able to build. This can be done using brew from a macOS terminal: 11 12 ``` 13 $ brew install go go-md2man 14 ``` 15 16 ## Obtain Podman source code 17 18 You can obtain the latest source code for Podman from its github repository. 19 20 ``` 21 $ git clone https://github.com/containers/podman go/src/github.com/containers/podman 22 ``` 23 24 ## Build client 25 After completing the preparatory steps of obtaining the Podman source code and installing its dependencies, the client 26 can now be built. 27 28 ``` 29 $ cd go/src/github.com/containers/podman 30 $ make podman-remote-darwin 31 $ mv bin/darwin/podman bin/podman 32 ``` 33 34 The binary will be located in bin/ 35 ``` 36 $ ls -l bin/ 37 ``` 38 39 If you would like to build the docs associated with Podman on macOS: 40 ``` 41 $ make install-podman-remote-darwin-docs 42 $ ls docs/build/remote/darwin 43 ``` 44 45 To install and view these manpages: 46 47 ``` 48 $ cp -a docs/build/remote/darwin/* /usr/share/man/man1 49 $ man podman 50 ``` 51 52 ## Using the client 53 54 To learn how to use the Podman client, refer its 55 [tutorial](https://github.com/containers/podman/blob/main/docs/tutorials/remote_client.md).