› Foros › PC › Software libre
rpm -qlp subsonic-4.6.rpm
/etc/init.d/subsonic
/etc/sysconfig/subsonic
/usr/share/subsonic/subsonic-booter-jar-with-dependencies.jar
/usr/share/subsonic/subsonic.sh
/usr/share/subsonic/subsonic.war
/var/subsonic/transcode/ffmpeg
/var/subsonic/transcode/lame
rpm -qp --scripts subsonic-4.6.rpm
preinstall scriptlet (using /bin/sh):
# Stop Subsonic service.
if [ -e /etc/init.d/subsonic ]; then
service subsonic stop
fi
exit 0
postinstall scriptlet (using /bin/sh):
ln -sf /usr/share/subsonic/subsonic.sh /usr/bin/subsonic
chmod 750 /var/subsonic
# Clear jetty cache.
rm -rf /var/subsonic/jetty
# For SELinux: Set security context
chcon -t java_exec_t /etc/init.d/subsonic 2>/dev/null
# Configure and start Subsonic service.
chkconfig --add subsonic
service subsonic start
exit 0
preuninstall scriptlet (using /bin/sh):
# Only do it if uninstalling, not upgrading.
if [ $1 = 0 ] ; then
# Stop the service.
[ -e /etc/init.d/subsonic ] && service subsonic stop
# Remove symlink.
rm -f /usr/bin/subsonic
# Remove startup scripts.
chkconfig --del subsonic
fi
exit 0
PACKAGE QUERY OPTIONS:
--changelog
Display change information for the package.
-c, --configfiles
List only configuration files (implies -l).
-d, --docfiles
List only documentation files (implies -l).
--dump Dump file information as follows (implies -l):
path size mtime filedigest mode owner group isconfig isdoc rdev symlink
--filesbypkg
List all the files in each selected package.
-i, --info
Display package information, including name, version, and description. This uses the --queryformat if one was specified.
--last Orders the package listing by install time such that the latest packages are at the top.
-l, --list
List files in package.
--provides
List capabilities this package provides.
-R, --requires
List capabilities on which this package depends.
--scripts
List the package specific scriptlet(s) that are used as part of the installation and uninstallation processes.
-s, --state
Display the states of files in the package (implies -l). The state of each file is one of normal, not installed, or replaced.
--triggers, --triggerscripts
Display the trigger scripts, if any, which are contained in the package.