LinuxQuestions.org
Review your favorite Linux distribution.
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 02-07-2004, 02:17 PM   #1
slackMeUp
Member
 
Registered: Nov 2003
Distribution: Slack-where?
Posts: 654

Rep: Reputation: 30
Creating packages...


I would like to create a package of a kernel that I have made... I have never made a package before so how would I go about this?
 
Old 02-07-2004, 03:11 PM   #2
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
you can make a slackpkg of the whole kernel source by cd-ing into the base of the kernel (ie cd /usr/src/linux) and then doing makepkg linux2.x.x.tgz

or, install checkinstall (available in /extras in disc 2 of slackware) and then go into the base of the kernel source and do checkinstall (note: this one is a guess, it may or may not work)

or, you can manually make a package buy copying your vmlinuz file from /boot and your modules from /lib/modules and then tarring them
 
Old 02-07-2004, 05:26 PM   #3
slackMeUp
Member
 
Registered: Nov 2003
Distribution: Slack-where?
Posts: 654

Original Poster
Rep: Reputation: 30
Well i am looking to make a package like the one found under slackware/a on the slackware install disc.... only the one I make will be just for my system.
 
Old 02-07-2004, 06:35 PM   #4
id10t
Member
 
Registered: Dec 2003
Location: Minnesota
Distribution: Slackware 9.1
Posts: 63

Rep: Reputation: 15
So you could take vmlinuz and the contents of /lib/modules (lets say it is kernel 2.6.2) and transfer them to a machine with the same setup... (of course in the same location) then do a little update to lilo and it should work? Right?
 
Old 02-07-2004, 11:23 PM   #5
slackMeUp
Member
 
Registered: Nov 2003
Distribution: Slack-where?
Posts: 654

Original Poster
Rep: Reputation: 30
Yes that is just what I am looking for...
 
Old 02-08-2004, 03:43 AM   #6
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
For the modules just:
cd /lib/modules
makepkg kernel-modules-2.4.??-i?86-?.tgz
make sure there's only one set of modules there. this will make a package that you can install and remove just like any otjer Slack package except that it won't have any package description
For the kernel itself, just save it somehwere that's convenient. Or make a directory /tmp and copy it there(might want to include the config file and System.map as well). then cd /tmp makepkg kernel-??????? have a look at some of the regular slack packages and name your packages using the same syntax so that pkgtool can work with them.
do man makepkg for more details
 
Old 02-08-2004, 04:28 PM   #7
r_jensen11
Senior Member
 
Registered: Apr 2003
Location: Minnesota, USA
Distribution: Slack 10.0 w/2.4.26
Posts: 1,032

Rep: Reputation: 45
I would do checkinstall, makepkg has never worked properly for me. In fact, when I try to install using the packages I create with makepkg, it doesn't install.
 
Old 02-08-2004, 05:20 PM   #8
slackMeUp
Member
 
Registered: Nov 2003
Distribution: Slack-where?
Posts: 654

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by gnashley
For the modules just:
cd /lib/modules
makepkg kernel-modules-2.4.??-i?86-?.tgz
make sure there's only one set of modules there. this will make a package that you can install and remove just like any otjer Slack package except that it won't have any package description
For the kernel itself, just save it somehwere that's convenient. Or make a directory /tmp and copy it there(might want to include the config file and System.map as well). then cd /tmp makepkg kernel-??????? have a look at some of the regular slack packages and name your packages using the same syntax so that pkgtool can work with them.
do man makepkg for more details
Thanks a bunch...
 
Old 02-08-2004, 10:27 PM   #9
id10t
Member
 
Registered: Dec 2003
Location: Minnesota
Distribution: Slackware 9.1
Posts: 63

Rep: Reputation: 15
I'm still not really clear on all of the files that are needed. How about a list, shall we?

1337 list of stuff necessary to effectively transfer one's kernel to another system using a different kernel:

-vmlinuz (kernel)
-contents of /lib/modules

<?> config file and System.map </?>

 
Old 02-09-2004, 08:41 AM   #10
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Create a directory /somewhere/tmp, then make a /boot directory inside that. Copy the kernel (named vmlinuz-2.4.??-version), the System.map and config to the /tmp/boot dir.
then cd inside the /tmp dir. 'ls' should show /boot. Now run makepkg kernel-2.4.??-i386-1.tgz makepkg will create a tgz file there and preserve the /boot. now just copy the tgz file to some place safe. the rm -rf ./boot
Then, from the same spot: mkdir lib lib/modules
the copy the contents of /lib/modules/2.4.?? into /somewhere/tmp/lib/modules.
The from inside /somewhere/tmp (ls should show /lib) do:
makepkg kernel-modules-2.4.??-i386-1.tgz
then copy the resulting tgz to a safe place.
You should observe the Slackware package naming conventions so that pkgtools can work with the package. You may want to create a description file (package-name.txt) as well. Just use another package desc. file as a pattern.
I have been making several of these lately and had no problems installing or uninstalling any of them.
 
  


Reply



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
Creating DSL Packages... cowboy_jake DamnSmallLinux 1 07-15-2005 09:08 PM
Creating static packages? Megamieuwsel Linux - Software 2 04-30-2004 02:17 AM
Mandrake Update/Install Packages/Remove Packages wslyhbb Mandriva 2 03-15-2004 09:43 AM
creating slackware packages supenguin Slackware 1 10-20-2003 03:10 AM
creating packages (.tgz/.deb/.rpm) How from the source packages? l_9_l Linux - General 1 03-06-2002 06:03 PM

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

All times are GMT -5. The time now is 12:26 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