FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 07-13-2008, 02:50 PM
"David Hl√°ńćik"
 
Default yum remove from stdout

Hello, little tricky question :
¬*
i have¬*a file of packages for removal , which looks like that :
¬*
atk libart_lgpl libXfixes audiofile libXcursor libxslt alsa-lib esound gnome-mime-data libIDL ORBit2 libbonobo libdaemon libXrandr dbus-python avahi avahi-glib gamin shared-mime-info libXres startup-notification libXinerama hicolor-icon-theme gtk2 GConf2 libglade2 libgnomecanvas gnome-keyring libwnck notification-daemon libnotify gnome-vfs2 libgnome libbonoboui gnome-mount libgnomeui xulrunner firefox libXmu xorg-x11-xauth ttmkfdir libfontenc libXfont xorg-x11-font-utils libselinux-python audit-libs-python policycoreutils libFS chkfontpath xorg-x11-xfs xorg-x11-fonts-truetype xorg-x11-fonts-ISO8859-1-100dpi xorg-x11-fonts-100dpi xorg-x11-fonts-ISO8859-2-75dpi xorg-x11-fonts-ethiopic xorg-x11-fonts-misc xorg-x11-fonts-syriac xorg-x11-fonts-ISO8859-9-100dpi xorg-x11-fonts-Type1 xorg-x11-fonts-ISO8859-14-75dpi xorg-x11-fonts-ISO8859-9-75dpi xorg-x11-fonts-ISO8859-2-100dpi xorg-x11-fonts-ISO8859-15-100dpi xorg-x11-fonts-base xorg-x11-fonts-ISO8859-14-100dpi xorg-x11-fonts-ISO8859-1-75dpi xorg-x11-fonts-cyrillic xorg-x11-fonts-75dpi xorg-x11-fonts-ISO8859-15-75dpi libXtst vnc-server libXpm libXaw xterm

¬*
how to , provide that file to yum, using pipe, or redirect does not work
¬*
cat result | yum remove ..
¬*
Thanks in advance!
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 07-13-2008, 03:02 PM
Kenneth Burgener
 
Default yum remove from stdout

On 7/13/2008 8:50 AM, David Hl√°ńćik wrote:

Hello, little tricky question :

i have a file of packages for removal , which looks like that :

atk libart_lgpl libXfixes audiofile libXcursor libxslt alsa-lib esound

how to , provide that file to yum, using pipe, or redirect does not work

cat result | yum remove ..



Try the xargs command:

cat result | xargs yum remove



Kenneth
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 07-13-2008, 03:16 PM
Ray Van Dolson
 
Default yum remove from stdout

On Sun, Jul 13, 2008 at 09:02:44AM -0600, Kenneth Burgener wrote:
> On 7/13/2008 8:50 AM, David Hl√°ńćik wrote:
>> Hello, little tricky question :
>> i have a file of packages for removal , which looks like that :
>> atk libart_lgpl libXfixes audiofile libXcursor libxslt alsa-lib esound
>> how to , provide that file to yum, using pipe, or redirect does not work
>> cat result | yum remove ..
>
>
> Try the xargs command:
>
> cat result | xargs yum remove
>

You could probably also do something like:

# for line in `cat packages.txt`; do echo remove $line >> yumshell.txt; done
# echo run >> yumshell.txt
# yum shell yumshell.txt

That might be a bit faster as it'll only do the dep-solving one time.

Ray
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 07:40 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org