I insatalled softs by yast.But I can’t find them.
I can’t find any soft at “/usr/local/share”.I just find folders at “/usr/share”.
But I can’t find any file in those folders to start soft.
For instance:
(a)I read the apache document at:
" /usr/share/apache2/manual/invoking.html.en"->“How Apache Starts”.
But I can’t find the “apachectl” at “/usr/local/apache2/bin”.
I just find apache2 files at “/usr/share/apach2”,but there is no “apachectl”.
(b)In “/usr/share/mplayer” ,I just find “skins”.
My os is opensuse 11.3 x86_64.
For any program loaded by YaST in Software Management, select the File List Tab for the names and locations of files added by that application. File names shown in bold are executable I think. Anything loaded outside of YaST, like running a rpm install file in terminal, willl not be shown in YaST.
Thank You,
Adding to the post above (which tells you where you can find what files are installed when you installed a package) the following points which may help you understand thiings a bit better.
YaST has nothing to say in it and has thus no default place(s). YaST is a GUI wrapper and it calls zypper. Also zypper does not have any place(s)) predefined, same for rpm (I do not know if zypper calls rpm for the install or if it reinvented the wheel here). The place(s) where every individual file in a package must go is defined in the package itself.
The place(s) where files go are of course dependent on their usage. A user aexecutable may e.g. go in /bin (or another place which is in the default PATH environment variable of normal users) and it’s configuration file in /etc. Also, when it is a GUI program, the installation process may add an entry to the main menu of the Desktop you use.
For executables only to be used by the system administrator, they may go in different places like /sbin, these places are most probably in the default PATH environment variable of root.
For system services executables (like your example the Apache webserver) these places can be different. And they may have names very different from what you think they are. I have an Apache web-server running it shows like this:
root 2765 1 0 10:19 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 2766 2765 0 10:19 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 2767 2765 0 10:19 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 2769 2765 0 10:19 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 2770 2765 0 10:19 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 2771 2765 0 10:19 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
These servers are best started using YaST > System > System services (runlevel).
Thus every package can have a different place and a different way to start it. Most often this is a good place and neither the system administrator nor the end-user has to bother about it.
When you nevertheless want to know where (or if) an executable is to be found using the PATH try the which tool, e.g…:
henk@boven:~> which which
/usr/bin/which
henk@boven:~>
On 2010-09-12 11:36, hcvv wrote:
> YaST is
> a GUI wrapper and it calls zypper.
No, it doesn’t. It calls some libs common to zypper and yast, and both call ‘rpm’ to do the actual
installation.
Why?
Because I know, devs told this.
More proof:
The package installer module is “/usr/share/YaST2/clients/sw_single.ycp”. The rpm command tell us
which rpm contains it:
Elessar:~ # rpm -qf /usr/share/YaST2/clients/sw_single.ycp
yast2-packager-2.18.13-1.1.3.x86_64
Now, find what packages are needed by that module:
Elessar:~ # rpm -qf --requires /usr/share/YaST2/clients/sw_single.ycp
yast2-country-data >= 2.16.3
yast2-pkg-bindings >= 2.17.27
yast2 >= 2.18.1
unzip
yast2-transfer
yast2-xml
/usr/bin/md5sum
yast2-core >= 2.16.35
yast2_ui_pkg
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(CompressedFileNames) <= 3.0.4-1
/usr/bin/perl
rpmlib(PayloadIsLzma) <= 4.4.6-1
Then look at the “dendencies” tab in Yast for yast2-packager.
No “zypper” is listed there
–
Cheers / Saludos,
Carlos E. R.
(from 11.2 x86_64 “Emerald” GM (Elessar))
You are of course right, no need to prove it at all. Every systems engineer/programmer would make the libraries and then a CLI and a GUI user interfaces to them.
But how would you explain the “logical” leveling of these things in a short statement understood by the OP. Enough to get him out of some misconceptions, but als without making everything more complicated to him?