How to know if something's installed, and where to find it?
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.
How to know if something's installed, and where to find it?
I've been told that OpenVPN comes shipped with Slackware 12.
I did a full install of Slackware 12 from a bootable DVD. Then when I booted into Slackware on my hard disk, I opened up a terminal and typed "openvpn". The response I got was:
-bash: openvpn: command not found
Does this not suggest that either:
1) OpenVPN is in fact *not* installed.
2) The containing directory for "openvpn" is not in the $PATH.
If OpenVPN really is shipped with Slackware, then where can I find it on my hard disk? Also, does anyone know why they didn't add this path to $PATH (if such is the case)?
What's the story with /opt and /usr/bin? Which one is the place where you put your programs?
When you do a fresh install from Slackware 12, what's the best way to go about upgrading it fully? When I was using Backtrack, I just did "slapt-get --upgrade". Does Slackware have such a feature?
I imagine, for something like slapt-get to work, that there must be a database somewhere on the hard disk that lists the names of the currently installed programs. Presumably, slapt-get then compares the versions with the latest versions and, if necessary, downloads the latest ones. That right?
Is there anything in Slackware that aids in the use of capital versus non-capital letters? For instance, let's say I typed in "OpenVPN" instead of "openvpn", is there any kind of facility that will tell me:
-bash: OpenVPN: command not found (but we did find openvpn)
This binary is located at /usr/sbin/openvpn. Type 'man openvpn' to read the manual.
The reason you get 'command not found' is because the /usr/sbin folder is not in the PATH of a regular user (by default), it's in root's default PATH however. This is probably done because in order to run openvpn properly, you need to run it as root (as it changes network settings and routes).
As far as finding files on your computer goes, I use 'slocate'. In a nutshell, you build a database by running 'updatedb' as root, then look for the file/folder with the locate command (as any user).
Quote:
What's the story with /opt and /usr/bin? Which one is the place where you put your programs?
nelson@slaptop:~$ ls /var/adm/packages/ | grep openvpn
openvpn-2.0.9-i486-1
nelson@slaptop:~$
If you don't have OpenVPN installed then you didn't do a full install.
To upgrade Slackware the default way, read the changelogs found at your friendly neighbourhood Slackware Mirror, download the packages in the patches/ folder and use pkgtool
You could also install Slackpkg from the extra/ directory in the mirrors or on one of your install disks, the upgrade process for that is found in the slackpkg man pages.
Quote:
I imagine, for something like slapt-get to work, that there must be a database somewhere on the hard disk that lists the names of the currently installed programs. Presumably, slapt-get then compares the versions with the latest versions and, if necessary, downloads the latest ones. That right?
See /var/adm/packages (or /var/log/packages because on my system /var/adm is a symlink to /var/log/)
Quote:
Is there anything in Slackware that aids in the use of capital versus non-capital letters? For instance, let's say I typed in "OpenVPN" instead of "openvpn", is there any kind of facility that will tell me
I don't think so.
Last edited by truthfatal; 02-19-2008 at 05:20 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.