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
cd /var/run
ls
vim yum.pid
press insert
delete pid number and save pressing esc + : + x then press enter
now run your yum command