Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-26-2009, 02:11 AM   #1
LQ Newbie
Registered: Oct 2003
Location: Vic, Australia
Posts: 5

Rep: Reputation: 0
Smile 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?
Old 06-26-2009, 02:25 AM   #2
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 70
Originally Posted by aussieaubs View Post
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
Why what?

Last edited by Uncle_Theodore; 06-26-2009 at 02:26 AM.
Old 06-27-2009, 12:05 AM   #3
Registered: Jun 2009
Posts: 101

Rep: Reputation: 19
'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.


Last edited by jeromeNP7; 09-04-2009 at 09:52 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cmd Gins Linux - General 2 01-26-2007 06:01 PM
cmd burn DanTaylor Linux - Newbie 3 01-31-2006 08:15 PM
cmd burning DanTaylor Linux - Newbie 1 01-31-2006 07:57 PM
CMD For Linux ebrind Red Hat 9 11-29-2004 10:51 AM
CSH: "cmd >& file" or "cmd </dev/null >& file" stefanlasiewski Programming 1 09-08-2003 05:19 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:00 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration