Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Is there a way to build and install only a few of the GNU coreutils?

The README in coreutils-8.19.tar.xz lists 100-odd, but the INSTALL doesn't say how to install only a few, and the Makefile is (to me) opaque.

share|improve this question
2  
Not so much an answer as a pointer to an idea - buildroot normally sets up only a subset of coreutils, and if you have a smallish subset, you might want to consider busybox with the relevant tools. –  Danny Staple Oct 10 '12 at 16:41

1 Answer 1

up vote 2 down vote accepted
  ./configure
  cd ./lib
  make
  cd ../src
  make version.h
  make cat
  make ls

HTH

share|improve this answer
    
Thanks @Deer Hunter. How might a mortal have discovered this, or is it just common knowledge ? –  denis Oct 12 '12 at 10:01
    
Trial and error - mostly reading the output from naive attempts to make chroot etc. and figuring out the dependencies. –  Deer Hunter Oct 12 '12 at 10:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.