# 使用 Homebrew, apk, apt, dnf, Nix, pacman, zypper 安装 samba

查看 samba 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:samba
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install samba
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add samba
```

  证据: Alpine Linux edge package indexes: samba from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install samba
```

  证据: Debian stable package indexes: samba from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install samba
```

  证据: Fedora Rawhide package metadata: samba from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#samba
```

  证据: nixpkgs package indexes: samba from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S samba
```

  证据: Arch Linux sync databases: samba from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install samba
```

  证据: openSUSE Tumbleweed package metadata: samba from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:samba
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/samba>
- **版本:** 4.24.5
- **来源摘要:** SMB/CIFS file, print, and login server for UNIX
- **主页:** <https://www.samba.org/>
- **上游文档:** <https://www.samba.org/>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://download.samba.org/pub/samba/stable/samba-4.24.5.tar.gz>
- **最后更新:** 2026-07-28T13:13:47Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- cifsdd (cli)
- dbwrap_tool (cli)
- dumpmscat (cli)
- eventlogadm (cli)
- gentest (cli)
- ldbadd (cli)
- ldbdel (cli)
- ldbedit (cli)
- ldbmodify (cli)
- ldbrename (cli)
- ldbsearch (cli)
- locktest (cli)
- masktest (cli)
- mdsearch (cli)
- mvxattr (cli)
- ndrdump (cli)
- net (cli)
- nmbd (cli)
- nmblookup (cli)
- ntlm_auth (cli)
- oLschema2ldif (cli)
- pdbedit (cli)
- profiles (cli)
- regdiff (cli)
- regpatch (cli)
- regshell (cli)
- regtree (cli)
- rpcclient (cli)
- samba-log-parser (cli)
- sharesec (cli)
- smbcacls (cli)
- smbclient (cli)
- smbcontrol (cli)
- smbcquotas (cli)
- smbd (cli)
- smbget (cli)
- smbpasswd (cli)
- smbspool (cli)
- smbstatus (cli)
- smbtar (cli)
- smbtree (cli)
- testparm (cli)
- wbinfo (cli)
- wspsearch (cli)
- cifsdd (别名)
- dbwrap_tool (别名)
- dumpmscat (别名)
- eventlogadm (别名)
- gentest (别名)
- ldbadd (别名)
- ldbdel (别名)
- ldbedit (别名)
- ldbmodify (别名)
- ldbrename (别名)
- ldbsearch (别名)
- locktest (别名)
- masktest (别名)
- mdsearch (别名)
- mvxattr (别名)
- ndrdump (别名)
- net (别名)
- nmbd (别名)
- nmblookup (别名)
- ntlm_auth (别名)
- oLschema2ldif (别名)
- pdbedit (别名)
- profiles (别名)
- regdiff (别名)
- regpatch (别名)
- regshell (别名)
- regtree (别名)
- rpcclient (别名)
- samba-log-parser (别名)
- sharesec (别名)
- smbcacls (别名)
- smbclient (别名)
- smbcontrol (别名)
- smbcquotas (别名)
- smbd (别名)
- smbget (别名)
- smbpasswd (别名)
- smbspool (别名)
- smbstatus (别名)
- smbtar (别名)
- smbtree (别名)
- testparm (别名)
- wbinfo (别名)
- wspsearch (别名)

## 依赖

- gettext
- gnutls
- icu4c@78
- krb5
- libtasn1
- libxcrypt
- lmdb
- openssl@3
- popt
- readline
- talloc
- tdb
- tevent

## 构建依赖

- bison
- cmocka
- pkgconf

## macOS 提供的库

- libxcrypt

## 安装行为

- post-install 钩子: 未定义
- 注意事项: To avoid conflicting with macOS system binaries, some files were installed with non-standard name: - smbd: $HOMEBREW_PREFIX/sbin/samba-dot-org-smbd - profiles: $HOMEBREW_PREFIX/bin/samba-dot-org-profiles
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 4.24.5
- 管理器更新时间: 2026-07-28
- 本地数据: OK
- 上游仓库: https://www.samba.org/
- 信息: Release/tag comparison is only available for GitHub repositories.

## 安全说明

没有找到 samba 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: smb.conf
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** samba
- **Version Scheme:** 0
- **Revision:** 0
- **Conflicts With:** jena, puzzles
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 其他软件包管理器记录

- Debian apt - ctdb - 2:4.22.10+dfsg-0+deb13u1: normalized package name match | Debian stable package indexes: ctdb from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | clustered database to store temporary data | https://www.samba.org
- Debian apt - ldb-tools - 2:2.11.0+samba4.22.10+dfsg-0+deb13u1: normalized package name match | Debian stable package indexes: ldb-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | LDAP-like embedded database - tools | https://www.samba.org
- Debian apt - libldb-dev - 2:2.11.0+samba4.22.10+dfsg-0+deb13u1: normalized package name match | Debian stable package indexes: libldb-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | LDAP-like embedded database - development files | https://www.samba.org
- Debian apt - libldb2 - 2:2.11.0+samba4.22.10+dfsg-0+deb13u1: normalized package name match | Debian stable package indexes: libldb2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | LDAP-like embedded database - shared library | https://www.samba.org
- Debian apt - libnss-winbind - 2:4.22.10+dfsg-0+deb13u1: normalized package name match | Debian stable package indexes: libnss-winbind from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Samba nameservice integration plugins | https://www.samba.org
- Debian apt - libpam-winbind - 2:4.22.10+dfsg-0+deb13u1: normalized package name match | Debian stable package indexes: libpam-winbind from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Windows domain authentication integration plugin | https://www.samba.org
- Debian apt - libsmbclient-dev - 2:4.22.10+dfsg-0+deb13u1: normalized package name match | Debian stable package indexes: libsmbclient-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | development files for libsmbclient | https://www.samba.org
- Debian apt - libsmbclient0 - 2:4.22.10+dfsg-0+deb13u1: normalized package name match | Debian stable package indexes: libsmbclient0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | shared library for communication with SMB/CIFS servers | https://www.samba.org
- Debian apt - libtalloc-dev - 2:2.4.3+samba4.22.10+dfsg-0+deb13u1: normalized package name match | Debian stable package indexes: libtalloc-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | hierarchical pool based memory allocator - development files | https://www.samba.org
- Debian apt - libtalloc2 - 2:2.4.3+samba4.22.10+dfsg-0+deb13u1: normalized package name match | Debian stable package indexes: libtalloc2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | hierarchical pool based memory allocator | https://www.samba.org
- Debian apt - libtdb-dev - 2:1.4.13+samba4.22.10+dfsg-0+deb13u1: normalized package name match | Debian stable package indexes: libtdb-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Trivial Database - development files | https://www.samba.org
- Debian apt - libtdb1 - 2:1.4.13+samba4.22.10+dfsg-0+deb13u1: normalized package name match | Debian stable package indexes: libtdb1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Trivial Database - shared library | https://www.samba.org
- Debian apt - libtevent-dev - 2:0.16.2+samba4.22.10+dfsg-0+deb13u1: normalized package name match | Debian stable package indexes: libtevent-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | talloc-based event loop library - development files | https://www.samba.org
- Debian apt - libtevent0t64 - 2:0.16.2+samba4.22.10+dfsg-0+deb13u1: normalized package name match | Debian stable package indexes: libtevent0t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | talloc-based event loop library - shared library | https://www.samba.org
- Debian apt - libwbclient-dev - 2:4.22.10+dfsg-0+deb13u1: normalized package name match | Debian stable package indexes: libwbclient-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Samba winbind client library - development files | https://www.samba.org
- Debian apt - libwbclient0 - 2:4.22.10+dfsg-0+deb13u1: normalized package name match | Debian stable package indexes: libwbclient0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Samba winbind client library | https://www.samba.org


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [gettext](https://pkg.so/zh-hans/brew/gettext/) - Runtime dependency declared by Homebrew.
- [gnutls](https://pkg.so/zh-hans/brew/gnutls/) - Runtime dependency declared by Homebrew.
- [krb5](https://pkg.so/zh-hans/brew/krb5/) - Runtime dependency declared by Homebrew.
- [libtasn1](https://pkg.so/zh-hans/brew/libtasn1/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [bison](https://pkg.so/zh-hans/brew/bison/) - Build dependency declared by Homebrew.
- [termscp](https://pkg.so/zh-hans/brew/termscp/) - Popular package that depends on this formula.
- [legba](https://pkg.so/zh-hans/brew/legba/) - Popular package that depends on this formula.
- [nicotine-plus](https://pkg.so/zh-hans/brew/nicotine-plus/) - Shares pkgdb curated category or tags: cli, file-sharing, networking.
- [ncdc](https://pkg.so/zh-hans/brew/ncdc/) - Shares pkgdb curated category or tags: cli, file-sharing, networking.
- [rqbit](https://pkg.so/zh-hans/brew/rqbit/) - Shares pkgdb curated category or tags: cli, file-sharing, networking.
- [phodav](https://pkg.so/zh-hans/brew/phodav/) - Shares pkgdb curated category or tags: cli, file-sharing, networking.
- [copyparty](https://pkg.so/zh-hans/brew/copyparty/) - Shares pkgdb curated category or tags: cli, file-sharing, networking.
- [dufs](https://pkg.so/zh-hans/brew/dufs/) - Shares pkgdb curated category or tags: cli, file-sharing, networking.
- [netatalk](https://pkg.so/zh-hans/brew/netatalk/) - Shares pkgdb curated category or tags: cli, file-sharing, networking.
- [rustypaste](https://pkg.so/zh-hans/brew/rustypaste/) - Shares pkgdb curated category or tags: cli, file-sharing, networking.

## Combined YAML source

View the package source record on GitHub. [combined/samba.yml](https://github.com/mxcl/pkgdb/blob/main/combined/samba.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
