LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   fortune (https://www.linuxquestions.org/questions/linux-software-2/fortune-197662/)

drigz 06-25-2004 12:37 PM

fortune
 
I have looked on google but can't find where to download source for the fortune program - I am using LFS and am sick of that screensaver coming up and showing:
/bin/sh: line 1: /usr/games/fortune: No such file or directory

Where can I get it? I have found somewhere to download the source RPM - is there any way to extract this?

bulliver 06-25-2004 03:11 PM

http://www.ibiblio.org/pub/Linux/gam...ments/fortune/!INDEX.html

wipe 06-25-2004 08:25 PM

Without the actual RPM package manager, source RPM packages can be extracted this way:

rpm2cpio foo-1.0-1.src.rpm | cpio -dimv

Then again, you'd have to have both rpm2cpio and cpio. There's probably an rpm2cpio included in the full rpm utility, but these scripts should work as well:

http://www.iagora.com/~espel/rpm2cpio
http://www.rpm.org/tools/scripts/rpm2cpio.sh

Regards
Simon

drigz 06-26-2004 10:40 AM

got it working - thanks.


All times are GMT -5. The time now is 10:26 PM.