Skip to content
Advertisement

What’s the difference between yum -y install and yum install in CentOS

I’ve seen two ways to install packages,for example,squid on CentOS:

1.yum -y install squid

2.yum install squid

can anyone tell me what’s the difference between them ? also, I’m using CentOS v.6.6

Advertisement

Answer

If you supply -y it automatically chooses “yes” for future questions, i.e. are you sure you want to install squid? [Y/n]?.

It is handy if the installation takes a long time and asks multiple questions, which happens when you install multiple programs at once. In that case, having to type enter every now and again for the process to continue can be annoying.

For a full list of yum options and their definitions take a look at the help message for yum:

yum -h
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement