Questions about slackpkg utility, specifically searching for packages.
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.
Questions about slackpkg utility, specifically searching for packages.
I'm looking kernel with the files found here. The mirror I am using is also that link. So the way to find those files, I thought, was " slackpkg search [name] " but it keeps saying "No package name matches the pattern." even though it is definitely there (as shown above) Am I misunderstanding something or is there a different utility required for what I'd like to accomplish?
slackpkg searches what you have installed and the Slackware repo. From the slackpkg man page:
Quote:
You can search for any package distributed in Slackware.
# slackpkg search pattern
All packages names that matches with "pattern" will be shown.
Like file-search, you can see whether the packages are installed
or not; if not, you can download and instll them with other
slackpkg actions.
@slacker_: You appear to want to fetch files from the source directory. "slackpkg search" does not show files from the source/ subdirectory. Only packages in the slackware/ subdirectory. If you want the kernel source it is also available as an installable package. Just enter the following to search for it:
Code:
$ slackpkg search kernel-source
If you want a list of the available source/ files:
slackpkg searches what you have installed and the Slackware repo. From the slackpkg man page:
If you read through the thread, you'll see clearly that doesn't return what I was looking for.
Quote:
Originally Posted by ruario
@slacker_: You appear to want to fetch files from the source directory. "slackpkg search" does not show files from the source/ subdirectory. Only packages in the slackware/ subdirectory. If you want the kernel source it is also available as an installable package. Just enter the following to search for it:
Code:
$ slackpkg search kernel-source
If you want a list of the available source/ files:
Or if you are looking for a local mirror of the source/ directory you could do the following:
Code:
$ mkdir slackware-current
$ cd slackware-current
$ lftp -c "o http://mirrors.slackware.com/slackware/slackware-current; mirror -en source"
That's exactly what I was looking to do. Thank you very much. I didn't realize the kernel source was available like that. Now if I install the kernel-source...smp-noarch package, will that come with all variations of the 3.10.11 kernel including non-smp? I ask because my laptop cannot use the smp kernel.
The kernel source is just that, the source code for the kernel. It is not the kernel itself. The source is useful should you want to recompile the kernel (perhaps with different options) or compile kernel modules.
The other kernel packages are what you need to actually install/upgrade the kernel. You can find them with 'slackpkg search kernel', or here is the list (for 32-Bit Slack): kernel-firmware, kernel-generic, kernel-generic-smp, kernel-headers, kernel-huge, kernel-huge-smp, kernel-modules and kernel-modules-smp.
You probably want (assuming 32-bit): kernel-firmware, kernel-generic and kernel-modules. However, before you go out and install them consider that you almost certainly already have them installed if you did a full install initially. I suspect therefore, you simply wanted to make sure you are running the latest updates from -cuurent with regards to these packages. If that is true just issue 'slackpkg update' (To update your local list of available packages with the mirror), then 'slackpkg install-new', then 'slackpkg upgrade-all'. This should ensure that all your packages are up to date with your mirror (not just the kernel).
You may also want to issue 'slackpkg clean-system' to remove old and obsolete packages from your system (if you have unofficial packages that you made yourself you will get the chance to uncheck them so they don't also get removed).
P.S. ReaperX7 did say early on how to keep the system up to date but you may not have understood the relevance of his reply as you were expecting a search command. Similarly jstg told you how to search for kernel packages but because you had not issued the 'slackpkg update' you were shown the older kernels, not those available from -current.
Last edited by ruario; 09-17-2013 at 11:02 AM.
Reason: Added P.S.; removed smp from example as OP said he did not want this
If you read through the thread, you'll see clearly that doesn't return what I was looking for
As ponce already stated, you are probably using a "slackware 14" mirror on your slackpkg
Check /etc/slackpkg/mirrors and modify accordingly (note that you should uncomment only one mirror)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.