LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   can someone explain what this cmd does? (https://www.linuxquestions.org/questions/linux-newbie-8/can-someone-explain-what-this-cmd-does-735731/)

aussieaubs 06-26-2009 01:11 AM

can someone explain what this cmd does?
 
echo exclude=openoffice* >> /etc/yum.conf


i think its telling yum to not upgrade openoffice - is that right?
why???

Uncle_Theodore 06-26-2009 01:25 AM

Quote:

Originally Posted by aussieaubs (Post 3586728)
echo exclude=openoffice* >> /etc/yum.conf


i think its telling yum to not upgrade openoffice - is that right?

Yes, that's right. More precisely, no upgrades or installs for openoffice packages. Consult man yum.conf to be sure.
The echo command adds this line at the end of /etc/yum.conf file
Quote:

why???
Why what? :)

jeromeNP7 06-26-2009 11:05 PM

'echo exclude=openoffice* >> /etc/yum.conf' explained:
echo simply echoes the string, however, the '>>' redirection sends the output to file '/etc/yum.conf' in append mode. Using '>' would overwrite the file, '>>' does append to the end. The command is an equivalent for opening the /etc/yum.conf in a text editor and then adding 'exclude=openoffice*' to the end of the file.

Linux


All times are GMT -5. The time now is 04:22 PM.