Yum behavior when no package is found

"Maucci, Cyrille" <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <786DA5839DE45F439B74F2C21AE41C70373B03AC2E@G1W0437.americas.hpqcorp.net>
Hello yum gurus,


I am a 'new' yum user and have a question to raise here.

When I issue a yum install command where the package to be installed is not found in any repo, yum does not return an error (to a shell return code standpoint).

Is this the expected behavior?

I don't think what is written in the man page (If no package matches the given package name(s), they are assumed to be a shell glob and any matches are then installed) does answer my question.

Many thanks for your help
++Cyrille


#  yum install foo
Setting up Install Process
Setting up repositories
myrepo                    100% |=========================|  951 B    00:00
os                        100% |=========================| 1.1 kB    00:00
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: foo
Nothing to do

# echo $?
0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.