How to check if the EXTRA-FIX package exists in my installed lammps and how to install it

Dear All,

I am using LAMMPS (23 Jun 2022)

I need to use Extra-fix package.I have used “make ps” command to figure out if the package exists or not, but I got the error make: " *** No rule to make target `ps’. Stop. " , which means I am not in the correct directory.
I used: “sudo find / -name lammps -type d 2>/dev/null” to find the directory , what I got was multiple paths:

/usr/local/lib/python3.8/site-packages/lammps

/usr/local/Cellar/lammps

/usr/local/Cellar/lammps/20220623/include/lammps

/usr/local/Cellar/lammps/20220623/lib/python3.8/site-packages/lammps

/usr/local/Cellar/lammps/20220623/share/lammps

/usr/local/Cellar/lammps/20220623/share/lammps/tools/i-pi/examples/lammps

/System/Volumes/Data/usr/local/lib/python3.8/site-packages/lammps

/System/Volumes/Data/usr/local/Cellar/lammps

/System/Volumes/Data/usr/local/Cellar/lammps/20220623/include/lammps

/System/Volumes/Data/usr/local/Cellar/lammps/20220623/lib/python3.8/site-packages/lammps

/System/Volumes/Data/usr/local/Cellar/lammps/20220623/share/lammps

/System/Volumes/Data/usr/local/Cellar/lammps/20220623/share/lammps/tools/i-pi/examples/lammps

/System/Volumes/Data/Users/delaramnematollahi/Desktop/lammps-4May2022/tools/i-pi/examples/lammps

/System/Volumes/Data/Users/delaramnematollahi/Desktop/lammps-4May2022/python/lammps

/System/Volumes/Data/Users/delaramnematollahi/Desktop/lammps

/System/Volumes/Data/Users/delaramnematollahi/Downloads/lammps

/Users/delaramnematollahi/Desktop/lammps-4May2022/tools/i-pi/examples/lammps

/Users/delaramnematollahi/Desktop/lammps-4May2022/python/lammps

/Users/delaramnematollahi/Desktop/lammps

/Users/delaramnematollahi/Downloads/lammps

delaramnematollahi@Delarams-MacBook-Pro / % pwd

/

delaramnematollahi@Delarams-MacBook-Pro / % cd /usr/local/lib/python3.8/site-packages/lammps

I tried a few of them , but I was not successful in finding the correct directory. Do you have any recommendation on that?

I looked at the answer to the following question :

How to install package in LAMMPS

and I figured the answer to install a new package is installing the lammps from the beginning if the package doesn’t exist. Did I understand it correctly? could you please guide me what the best approach is in my case?

Best Regards,
Delaram

The answer on how to install packages depends on what build system you are using CMake or traditional make. The procedure for both cases is explained in great detail in the LAMMPS manual.

Since you are installing fresh from source and have a stable release, I strongly recommend to download the latest release (LAMMPS version 2 August 2023 - Update 1).

Whether a package is included in an existing LAMMPS binary, can be easily verified by running LAMMPS with the -h (or -help) flag and checking the output. It should include a section like this that shows the list of included packages:

Installed packages:

AMOEBA ASPHERE AWPMD BOCS BODY BPM BROWNIAN CG-DNA CG-SPICA CLASS2 COLLOID 
COLVARS COMPRESS CORESHELL DIELECTRIC DIFFRACTION DIPOLE DPD-BASIC DPD-MESO 
DPD-REACT DPD-SMOOTH DRUDE EFF ELECTRODE EXTRA-COMPUTE EXTRA-DUMP EXTRA-FIX 
EXTRA-MOLECULE EXTRA-PAIR FEP GRANULAR INTEL INTERLAYER KSPACE LEPTON MACHDYN 
MANIFOLD MANYBODY MC MEAM MESONT MISC ML-IAP ML-PACE ML-POD ML-RANN ML-SNAP 
MOFFF MOLECULE OPENMP OPT ORIENT PERI PHONON PLUGIN PLUMED POEMS PTM PYTHON 
QEQ QTB REACTION REAXFF REPLICA RIGID SHOCK SMTBQ SPH SPIN SRD TALLY UEF 
VORONOI YAFF 

Thank you so much Dr. akohlmey. I got
ASPHERE BOCS BODY BPM BROWNIAN CG-DNA CG-SDK CLASS2 COLLOID COLVARS CORESHELL
DIELECTRIC DIFFRACTION DIPOLE DPD-BASIC DPD-MESO DPD-REACT DPD-SMOOTH DRUDE
EFF EXTRA-COMPUTE EXTRA-DUMP EXTRA-FIX EXTRA-MOLECULE EXTRA-PAIR FEP GRANULAR
INTERLAYER KIM KSPACE MANIFOLD MANYBODY MC MEAM MGPT MISC ML-IAP ML-RANN
ML-SNAP MOFFF MOLECULE OPENMP OPT ORIENT PERI PHONON PLUGIN POEMS PTM QEQ QTB
REACTION REAXFF REPLICA RIGID SHOCK SMTBQ SPH SPIN SRD TALLY UEF YAFF

so my lammps version alread has the EXTRA-FIX package and I don’t think I need to re-install it.

Thanks again,
Regards,
Delaram