LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Questions about slackpkg utility, specifically searching for packages. (https://www.linuxquestions.org/questions/slackware-14/questions-about-slackpkg-utility-specifically-searching-for-packages-4175477388/)

slacker_ 09-16-2013 10:28 PM

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?

ReaperX7 09-16-2013 10:52 PM

Pardon if I don't understand, but I'm not getting the gist of what you mean, but I'll try.

Slackpkg is usually ran as such:

Code:

slackpkg update
Which checks for new packages on the distribution server.

Code:

slackpkg upgrade-all
Installs all updated packages for existing packages.

Code:

slackpkg install-new
Installs new packages added to the tree.

Code:

slackpkg clean-system
Displays a list of installed packages not in the tree or removed from the tree.

You can also use any of the following to do their respective functions:
Code:

slackpkg upgrade <package>
slackpkg search <package>
slackpkg install <package>
slackpkg reinstall <package>
slackpkg remove <package>
slackpkg blacklist <package>
slackpkg download <package>
slackpkg info <package>


slacker_ 09-16-2013 11:04 PM

Right, that's what I'm asking about is specifically the search functionality. I want to find the kernel image for 3.10.* so I do this:
Code:

slackpkg search linux-3.10.*
Correct? I thought that's what I needed to do, but it doesn't return anything.

I guess what I need is something to find and install individual packages from the slackware repos.

ReaperX7 09-16-2013 11:07 PM

I think it has to be a specific like:

Code:

slackpkg search linux-3.10.11.txz
or maybe:

Code:

slackpkg search linux-*.t?z
as it may require the file extension (if one exists).

slacker_ 09-16-2013 11:15 PM

Both returned the same "No package name matches the pattern."

jstg 09-16-2013 11:26 PM

Assuming that the kernel packages aren't blacklisted
Code:

slackpkg search kernel
will show the kernel packages.

slacker_ 09-16-2013 11:31 PM

All that shows up are current kernel versions (3.2.29).

ponce 09-17-2013 12:05 AM

because you are using slackware-14.0, not -current: current is the development version of slackware and is using a separate repository from 14.0.

ReaperX7 09-17-2013 12:21 AM

Yes, the search function will only search the local filesystem, not the distribution server.

slacker_ 09-17-2013 01:30 AM

Ok, then how do I search the dist server or the full repository from the mirror?

solarfields 09-17-2013 01:34 AM

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.

ruario 09-17-2013 01:58 AM

@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:

Code:

$ wget -qO- http://mirrors.slackware.com/slackware/slackware-current/source/FILE_LIST
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"


slacker_ 09-17-2013 02:26 AM

Quote:

Originally Posted by solarfields (Post 5028974)
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 (Post 5028983)
@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:

Code:

$ wget -qO- http://mirrors.slackware.com/slackware/slackware-current/source/FILE_LIST
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.

ruario 09-17-2013 10:53 AM

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.

Slax-Dude 09-17-2013 11:26 AM

Quote:

Originally Posted by slacker_ (Post 5028998)
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)


All times are GMT -5. The time now is 10:00 AM.