PDA

View Full Version : rpm questions



Danniello
22nd July 2006, 12:03 PM
How to list broken packages?

For example:
I installed xine.
xine in livna.org for FC5 x64 have broken Polish translation (no Polish characters) so I removed it:
cd /usr/share/locale/pl/LC_MESSAGES/
rm -f xine-ui.mo xitk.mo libxine1.mo
xine working OK (in English)

When I run:

# rpm -Va xine*
missing /usr/share/locale/pl/LC_MESSAGES/libxine1.mo
missing /usr/share/locale/pl/LC_MESSAGES/xine-ui.mo
missing /usr/share/locale/pl/LC_MESSAGES/xitk.mo

# rpm -qf /usr/share/locale/pl/LC_MESSAGES/libxine1.mo /usr/share/locale/pl/LC_MESSAGES/xine-ui.mo /usr/share/locale/pl/LC_MESSAGES/xitk.mo
xine-lib-1.1.2-3.lvn5
xine-0.99.4-7.lvn5
xine-0.99.4-7.lvn5
How do it automaticly?
I want output like this:

# rpm -Va {something} xine*
xine-lib-1.1.2-3.lvn5
xine-0.99.4-7.lvn5
I read "man rpm" but I still don't know how to do it...

Question 2:
Why rpm/yum output is different when there is a file with the same name in current path?

# cd /root
# rpm -qa xine* kaf*
xine-lib-1.1.2-3.lvn5
kaffeine-0.8.1-1.lvn5
xine-0.99.4-7.lvn5

# yum list xine* kaf*
Installed Packages
kaffeine.x86_64 0.8.1-1.lvn5 installed
xine.x86_64 0.99.4-7.lvn5 installed
xine-lib.x86_64 1.1.2-3.lvn5 installed
Available Packages
kaffeine-devel.x86_64 0.8.1-1.lvn5 livna
xine-lib-devel.x86_64 1.1.2-3.lvn5 livna
xine-skins.noarch 1.8-1.lvn5 livna
xinetd.x86_64 2:2.3.13-6.2.1 core

# ll xine* kaf*
ls: xine*: No such file or directory
ls: kaf*: No such file or directory

# cd /home/Daniello
# rpm -qa xine* kaf*
kaffeine-0.8.1-1.lvn5

# yum list xine* kaf*
Installed Packages
kaffeine.x86_64 0.8.1-1.lvn5 installed
Available Packages
kaffeine-devel.x86_64 0.8.1-1.lvn5 livna

# ll xine* kaf*
ls: kaf*: No such file or directory
-rw-rw-r-- 1 Daniello Daniello 75023 Jul 20 23:40 xine.i386.png

How to solve it (I sometimes forgot go to empty directory before use yum/rpm)?

markkuk
22nd July 2006, 12:46 PM
Question 2:
Why rpm/yum output is different when there is a file with the same name in current path?
The shell expands any wildcards on command lines if there are matching files in the current directory. Use quotes around the parameter containing a '*' to prevent this.

Danniello
23rd July 2006, 09:20 PM
The shell expands any wildcards on command lines if there are matching files in the current directory. Use quotes around the parameter containing a '*' to prevent this.

Thanks - it's working:)

Anybody know solution for my first question: how to do a list of broken packages?