Hi,
I asked the following question on fedora-list, but didn't receive an answer. I hope someone here can help me.
I was looking for a system-install-packages sort of program that could resolve dependencies via yum. I couldn't find any, but since I believe Fedora/Redhat will provide one eventually, I thought of making a quick hack to get it done. I wrote a python script, which calls yum in a gnome-terminal. I then copied the configuration from system-install-packages. When I now run my program, all I get is a 'The password you typed is invalid. Please try again'. It didn't even ask me a password.... What did I do wrong? When I start system-install-packages, it works all perfect. So more info: -------------- $ ls -lh /usr/bin/ lrwxrwxrwx 1 root root 13 Jan 2 23:10 /usr/bin/system-install-packages -> consolehelper lrwxrwxrwx 1 root root 13 Jan 3 20:54 /usr/bin/uniXp-install-packages -> consolehelper -------------- $ ls -lh /usr/sbin/ -rwxr-xr-x 1 root root 83 Nov 15 18:29 /usr/sbin/system-install-packages -rwxr-xr-x 1 root root 233 Jan 4 00:16 /usr/sbin/uniXp-install-packages -------------- $ ls -lh /etc/security/console.apps/ -rw-r--r-- 1 root root 65 Nov 15 18:29 system-install-packages -rw-r--r-- 1 root root 64 Jan 3 20:50 uniXp-install-packages -------------- $ ls -lh /etc/pam.d/ -rw-r--r-- 1 root root 276 Nov 15 18:29 system-install-packages -rw-r--r-- 1 root root 276 Jan 3 20:50 uniXp-install-packages -------------- $ cat /usr/sbin/uniXp-install-packages #!/usr/bin/python
import os
os.execvp('gnome-terminal',['gnome-terminal','-x','sh','-c','yum install test; sleep 5']) --------------
Of course the script doesn't do anything usefull at the moment, but I like to get it working this way first....
Does anybody have any idea what I did wrong?
Thanks in advance,
Remco Poelstra