Trying to do a yum version of:
rpm -qa --queryformat %10(NAME) > ~/var/tmp/box1.list
yum list installed ?
On Sat, 4 May 2013 13:42:35 -0400 Rahul Sundaram metherid@gmail.com wrote:
yum list installed ?
Yes
Rahul
But, how can it be shortened to NAME only? ConsoleKit.x86_64... 0.4.5-3.fc18... installed Haven't found an ideal grep option as yet.
On 5/4/2013 4:17 PM, Frank Murphy wrote:
On Sat, 4 May 2013 13:42:35 -0400 Rahul Sundaram metherid@gmail.com wrote:
yum list installed ?
Yes
Rahul
But, how can it be shortened to NAME only? ConsoleKit.x86_64... 0.4.5-3.fc18... installed Haven't found an ideal grep option as yet.
Does this do what you want?
rpm -qa | grep <put file name here>
per you example:
rpm -qa | grep ConsoleKit
On Sat, 04 May 2013 16:22:50 -0400 David dgboles@gmail.com wrote:
Does this do what you want?
rpm -qa | grep <put file name here>
per you example:
rpm -qa | grep ConsoleKit
Thanks for the reply David, Just getting to some of the now.
the grep ConsoleKit was a demo snipped from "yum list installed", but I forgot to clarify that with a tag. So I hope, I didn't confuse too many with my mistake.
The total goal. Is to come up with a simple set(string?) of "commands" that would allow someone to use a central nfs yum server to download all needed updates. Without having to worry about most of what's here: http://yum.baseurl.org/wiki/YumMultipleMachineCaching
I'm coming from this "Freemedia Hat" on. Whereby there may be a small office/big family maybe <=10pc where bandwidth is a challenge. With most other named options (see link) overkill. But, also allowing for the yum-server being the only box writing to the cache. Which should negate the sqlite/nfs problem.
On Sat, 4 May 2013 21:17:50 +0100 Frank Murphy frankly3d@gmail.com wrote:
On Sat, 4 May 2013 13:42:35 -0400 Rahul Sundaram metherid@gmail.com wrote:
yum list installed ?
Yes
Rahul
But, how can it be shortened to NAME only? ConsoleKit.x86_64... 0.4.5-3.fc18... installed Haven't found an ideal grep option as yet.
I'd suggest repoquery for this:
repoquery --qf '%{name}' --installed -a
format to just name only installed packages all of them
kevin
On Sat, 4 May 2013 14:25:22 -0600 Kevin Fenzi kevin@scrye.com wrote:
repoquery --qf '%{name}' --installed -a
Thanks Kevin, works a charm. Left Aligned too :)
On Sat, 4 May 2013 14:25:22 -0600 Kevin Fenzi kevin@scrye.com wrote:
The concept seems to be sound: on the yum client repoquery --qf '%{name} ' --installed -a >> /var/tmp/"$(hostname -s).list" ; cp /var/tmp/"$(hostname -s).list" nfs:/sharedyumcache/"$(uname -i )"/"$(cat /etc/fedora-release | grep -o '[0-9]'*)"/lists
then on say yum-server yum update --releasever=N update `*.list` (cat and add same release+arch hostnames)
So the one yum server (currently physically building this) can accommodate all yum releases using nfs (I know it shouldn't be done)
with basic fedora supplied commands. kiss principle.
On Sat, May 4, 2013 at 8:21 AM, Frank Murphy frankly3d@gmail.com wrote:
Trying to do a yum version of:
rpm -qa --queryformat %10(NAME) > ~/var/tmp/box1.list
yum list installed ?
I don't know how to do it with yum but repoquery --installed is another way that accepts query format specifications.
John