3

I've created a library with 3 file objects using:

ar rv arhiva.a file.o file2.o file3.o

Why I can't delete a file object from it? I've used

ar xv arhiva.a file.o

enter image description here

Anthon
  • 78,313
  • 42
  • 165
  • 222
Shury
  • 133
  • 1
  • 4

1 Answers1

4

from ar(1) man page

   d   Delete modules from the archive.  Specify the names of modules to be
       deleted as member...; the archive is untouched if you specify no files to
       delete.

       If you specify the v modifier, ar lists each module as it is deleted.

have you tried .. ?

 ar dv arhiva.a file.o
  • x stand for eXtract
  • you can copy/paste line, just make four white to have indentation ..
Archemar
  • 31,183
  • 18
  • 69
  • 104