LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-17-2014, 05:19 PM   #1
5883
Member
 
Registered: Aug 2004
Posts: 173

Rep: Reputation: 0
what's the standard command to create package in ubuntu


i'm kind of lost with so many commands,

is dpkg the one ?
i need to put version number, dependencies in the package.
when install it, i'm hope it'll automatically install dependencies if it's not there.

Many thanks !
 
Old 02-17-2014, 10:54 PM   #2
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: openSUSE
Posts: 1,465
Blog Entries: 6

Rep: Reputation: 200Reputation: 200Reputation: 200
Hello 5883, your post isn't clear. Before anyone can give you decent advice, we need to know exactly what it is you're trying to accomplish.
From what i grasp, you are attempting to create a package. Before we help you, tell us why you are creating a package.
I suspect there is perhaps a better way to do what you desire.
 
Old 02-18-2014, 04:53 AM   #3
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Ubuntu uses .deb packages, so see here:

http://www.webupd8.org/2010/01/how-t...tu-debian.html

That's one article out of many found by doing a websearch.
 
Old 02-18-2014, 05:10 PM   #4
5883
Member
 
Registered: Aug 2004
Posts: 173

Original Poster
Rep: Reputation: 0
looks cool, let me read into it.

Quote:
Originally Posted by brianL View Post
Ubuntu uses .deb packages, so see here:

http://www.webupd8.org/2010/01/how-t...tu-debian.html

That's one article out of many found by doing a websearch.
 
Old 02-18-2014, 05:24 PM   #5
5883
Member
 
Registered: Aug 2004
Posts: 173

Original Poster
Rep: Reputation: 0
Sorry about that, my question is not clear because i have no experience in this area,

We sell black boxes to customers, ubuntu linux is running in such embedded system boxes. But no screen, no console. You can download packages to them from our windows utility as you know the ip, then our app running in the system will pick them up and starts the upgrade.

The requirement from the top is: customer should be able to upgrade kernel, file system, out app using apt-get install, or any of the combinations from these 3.
Also this upgrade should be able to handle all cases without technician on the site if possible: e.g. you lost power in the middle of upgrade, your new app has a bug and system won't start after upgrade, or your kernel has a bug and it just won't boot up...
Also in the system you are only allowed to keep 1 copy of kernel, 1 copy of fs, 2 copies of app. So if kernel is screwed up, you don't have a way to boot from another kernel easily.

Don't ask me why, management just doesn't listen to most engineers, and i have a family to feed.

So my 1st question is, with several package commands, which ones can handle above tasks.


Quote:
Originally Posted by Knightron View Post
Hello 5883, your post isn't clear. Before anyone can give you decent advice, we need to know exactly what it is you're trying to accomplish.
From what i grasp, you are attempting to create a package. Before we help you, tell us why you are creating a package.
I suspect there is perhaps a better way to do what you desire.

Last edited by 5883; 02-18-2014 at 06:44 PM.
 
Old 02-18-2014, 08:06 PM   #6
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: openSUSE
Posts: 1,465
Blog Entries: 6

Rep: Reputation: 200Reputation: 200Reputation: 200
Al them upgrades can be done by 'apt-get update && apt-get upgrade'.
I still don't understand why you need to create a package.
 
Old 02-18-2014, 08:14 PM   #7
5883
Member
 
Registered: Aug 2004
Posts: 173

Original Poster
Rep: Reputation: 0
say we are using ubuntu distribution, the kernel needs to be reconfigured for our system, just apt-get upgrade will point you to the standard kernel released by vendor, but that won't include our customized drivers etc.

same thing for file system, we'll customize it from vendor distribution by adding extra stuff, then rebuild a new file system package.

i could be wrong, but this is what i was told.


Quote:
Originally Posted by Knightron View Post
Al them upgrades can be done by 'apt-get update && apt-get upgrade'.
I still don't understand why you need to create a package.
 
Old 02-19-2014, 02:47 AM   #8
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: openSUSE
Posts: 1,465
Blog Entries: 6

Rep: Reputation: 200Reputation: 200Reputation: 200
Well first you'll need fakeroot devscripts build-essentials installed.
You will also need the dependencies plus the dev files for dependencies of what ever package you are creating.
You download the source cd in there and nice debuild -us -uc should do it.

I have only built one deb file from source. The instruction i've given you are what i used. I was in a hurry and haven't looked into the details behind them, so they may be taylored to that specific package. The kernel may even have it's own set of logistics. I would do a search on the debian wiki.
 
  


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
Ubuntu to create it's own package format and installer JWJones Ubuntu 3 05-19-2013 06:41 AM
Want to know to create package in Ubuntu 8 amemyum Linux - Newbie 1 11-19-2009 09:51 AM
Create a Debian Package in Ubuntu 8.04 flouran Linux - Software 1 11-29-2008 07:42 AM
LXer: Create custom portable Ubuntu package repositories with APTonCD LXer Syndicated Linux News 0 08-27-2007 07:20 AM
how to create a standard package linetnew Programming 1 10-15-2005 02:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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