SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am using slackware 14.2, when launching a kde sesion, message appear that the libfam.so is missing. Could sone tell me in which package I can find it ?
It's in the gamin package. You can use http://packages.slackware.com and change the "mode" dropdown to content to search for files. You can also use slackpkg search libfam to find what packages files are from.
EDIT: e5150 beat me to it with another alternative way to find files
Edited MIRRORDIR and added a few lines ( see below )
Saved as /home/local/bin/what-provides && chmod 755 /home/local/bin/what-provides ( /home/local/bin/ is in my PATH and is where I keep my handy goodies )
Tried it out and made a slight mod ( appended an extra `sed` command to sanitize away the Pair-o-Pipe-Symbols and set a full PATH on the Package Name )
Now part of my growing Slackware Bag-o-Tricks
Thanks again !
-- kjh
Code:
#!/bin/sh
#
# from e5150 at LQ: http://www.linuxquestions.org/questions/slackware-14/missing-libfam-so-4175592571/#post5625605
#
MIRRORDIR="/home/dld/slackware"
FULLPATH=0
[ "$1" = "-p" ] && FULLPATH=1 && shift
[ $# -lt 1 ] && echo "usage: `basename $0` [ -p ] FileName" >&2 && exit 1
if [ -f /etc/os-release ];then
. /etc/os-release
else
VERSION_ID=`cut -d' ' -f2 /etc/slackware-version`
fi
[ "`arch`" = "x86_64" ] && ARCHSUFFIX=64
MANIFEST=$MIRRORDIR/slackware$ARCHSUFFIX-$VERSION_ID/slackware$ARCHSUFFIX/MANIFEST.bz2
bzgrep -e 'Package:|'"$1" $MANIFEST | \
grep -B1 "$1" | \
sed -e 's/^|| */# /' | \
if [ "$FULLPATH" = "1" ]
then
sed -e "s# .\/# $MIRRORDIR/slackware$ARCHSUFFIX-$VERSION_ID/slackware$ARCHSUFFIX/#"
else
sed -e "s# .\/# #"
fi
exit ${PIPESTATUS[1]} # return status of the second grep command
#!/bin/sh
[...]
exit ${PIPESTATUS[1]} # return status of the second grep command
[/code]
PIPESTATUS is a bashism, so for the sake of pedantic correctness, the script ought to be a #!/bin/bash
Quote:
Originally Posted by kjhambrick
Now part of my growing Slackware Bag-o-Tricks
Maybe some of my darkstar-tools might be of interest, the programs are described in their corresponding .txt and in the (mostly rather old) announcement thread.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.