Replace or add files to an archive

ar

ar -r {{path/to/file.a}} {{path/to/file1.o}} {{path/to/file2.o}}

click the source code to copy install ar on any operating system with command-not-found.com