Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-10-2017, 02:43 AM   #1
LQ Newbie
Registered: Oct 2017
Posts: 1

Rep: Reputation: Disabled
rpm --eval

in one document i see they use below command:

[john@machine ~]$ sudo rpm --eval "%(/bin/bash >&2)"
root @ machine : /home/john $

seems to me the role of sudo rpm --eval "%(/bin/bash >&2)"
is same as "sudo -s" ?

i just feel strange, why bother doing it in such a complicated & confusing way?

usually "rpm --eval" is used to print out the value of macros,
such as:

[john@machine ~]$ rpm --eval %{_sysconfdir}


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Do I have to use eval? grail Programming 8 07-02-2014 11:08 AM
Using eval fakie_flip Linux - Software 9 09-12-2012 03:03 AM
Professional eval? hkl8324 SUSE / openSUSE 1 06-20-2005 04:51 AM
SUSE 9.2 Eval?? rm6990 Linux - Distributions 3 10-07-2004 06:50 PM
Suse 7.3 eval ramon Linux - General 1 01-19-2002 01:49 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:41 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration