netatalk

AFP file server for Mac clients on non-Apple systems

brewmacoslinux
Try with needOr install directly
Source

About

File server for Macs, compliant with Apple Filing Protocol (AFP)

Commands

afpdcnid_metadcnid_dbdasip-status

Examples

Check AFP server status on a remote host$ asip-status -p 548 192.168.1.100
Start the netatalk daemon$ brew services start netatalk
View netatalk configuration$ cat /usr/local/etc/afp.conf