Existing lock /var/run/yum.pid: another copy is running as pid 18092.
Here's the way to resolve.
Locate the yum.pid file, usually in fedora, it is located in /var/run dir
delete pid number and save pressing esc + : + x then press enter
now run your yum command