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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Oracle Linux Server contains more utility, because it is smaller than less utility. How can one install less in this RPM based distro?

share|improve this question

If not already installed, this should do it :

yum install less

Edit: as you are actually running in a Docker environment, the correct way would be to rebuild it with less added.

Otherwise, you might try this:

docker exec -it <ol_container> yum install less

but the risk is high yum isn't installed either. If neither yum nor rpm are available, you might also simply copy the less binary (and dependencies if missing) from your host, e.g.:

docker cp /usr/bin/less ol_container:/usr/bin/less
share|improve this answer
    
install more to get less? :-) – Lambert 2 days ago
    
@Lambert Thanks ! less is more, anyway ;-) – jlliagre 2 days ago
    
I tried yum, it asks for root. I am using docker image which is based on oracle/jdk:8 base docker image and can't figure out what the root password is. Anyway, it is different topic :) – Patrik Mihalčin 2 days ago
    
I tried docker exec option, but it returns: Loaded plugins: ulninfo You need to be root to perform this command. I'll tweak Dockerfile to install less - hopefully that'll do the job – Patrik Mihalčin 2 days ago
    
The would be sudo docker exec ... but you still need to be root on the host. – jlliagre 2 days ago

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.