__usr_bin_symlink.sh 491 B

12345678910111213141516171819
  1. #!/bin/bash
  2. # rpm -q --quiet task-texlive-full-doc
  3. # [ $? -ne 0 ] && \
  4. # echo "Usage: $(basename $0) > result.txt" && \
  5. # echo "please install task-texlive-full-doc" && \
  6. # exit 1
  7. (
  8. cd /usr/bin
  9. for lnk in $(rpm -ql texlive | grep /usr/bin); do
  10. [ -L $lnk ] || continue
  11. rlnk=$(readlink $lnk | sed -e "s|../|/usr/|")
  12. #echo "$(rpm -qf $rlnk),$lnk,$rlnk,$(head -n 1 $lnk)"
  13. echo "$(rpm -qf --qf '%{name}' $rlnk),$lnk,$rlnk"
  14. done
  15. ) | sort | egrep -v "^texlive,"
  16. exit