LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-16-2013, 10:28 PM   #1
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Rep: Reputation: 3
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?
 
Old 09-16-2013, 10:52 PM   #2
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
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>
 
1 members found this post helpful.
Old 09-16-2013, 11:04 PM   #3
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
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.
 
Old 09-16-2013, 11:07 PM   #4
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
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).
 
Old 09-16-2013, 11:15 PM   #5
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
Both returned the same "No package name matches the pattern."
 
Old 09-16-2013, 11:26 PM   #6
jstg
Member
 
Registered: Apr 2006
Distribution: Slackware
Posts: 59

Rep: Reputation: 37
Assuming that the kernel packages aren't blacklisted
Code:
slackpkg search kernel
will show the kernel packages.
 
1 members found this post helpful.
Old 09-16-2013, 11:31 PM   #7
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
All that shows up are current kernel versions (3.2.29).
 
Old 09-17-2013, 12:05 AM   #8
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
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.
 
1 members found this post helpful.
Old 09-17-2013, 12:21 AM   #9
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Yes, the search function will only search the local filesystem, not the distribution server.
 
1 members found this post helpful.
Old 09-17-2013, 01:30 AM   #10
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
Ok, then how do I search the dist server or the full repository from the mirror?
 
Old 09-17-2013, 01:34 AM   #11
solarfields
Senior Member
 
Registered: Feb 2006
Location: slackalaxy.com
Distribution: Slackware, CRUX
Posts: 1,449

Rep: Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997Reputation: 997
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.
 
Old 09-17-2013, 01:58 AM   #12
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
@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"
 
1 members found this post helpful.
Old 09-17-2013, 02:26 AM   #13
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by solarfields View Post
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 View Post
@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.
 
Old 09-17-2013, 10:53 AM   #14
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,557

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
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
 
1 members found this post helpful.
Old 09-17-2013, 11:26 AM   #15
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, V.N.Gaia, Portugal
Distribution: Slackware
Posts: 528

Rep: Reputation: 272Reputation: 272Reputation: 272
Quote:
Originally Posted by slacker_ View Post
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)
 
  


Reply

Tags
kernel, kernel 3, kernel upgrade, slackpkg, slackware 14



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Is there a yast type utility for Fedora 16? Specifically for NFS mkesling Linux - Newbie 3 02-13-2012 05:23 PM
Updating packages w/out Slackpkg Konphine Slackware 4 09-25-2011 02:40 PM
[SOLVED] Questions regarding Linux FTP, specifically vsftpd. EnderX Linux - Newbie 2 11-12-2010 12:44 PM
Slackpkg cannot find packages, swaret can mago Slackware 42 04-28-2007 12:35 AM
searching the utility unr303 Linux - Software 1 09-18-2002 06:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration