PDA

View Full Version : [ubuntu] how to create debian package



nuke_fluke
January 18th, 2010, 08:24 AM
every time i start with a new installation, i have to download all the useful software once again...

i think it would be simple and easy-to-use if these software could be bundled into debian packages which can be installed just by clicking (like in windows)...

Is there any website where I can find debian packages for important software? Or can I create them myself...

Plz suggest something other than aptoncd...

User_Program
January 18th, 2010, 09:27 AM
I use GetDeb (http://www.getdeb.net/welcome/), quick and easy.

sliketymo
January 18th, 2010, 10:10 AM
I use The Software Center,or apt-get.

Lars Noodén
January 18th, 2010, 11:06 AM
You can create a package that contains no programs, just a list of dependencies. equivs (http://packages.debian.org/etch/equivs) is probably the tool you are looking for there. Here is one description of using equivs (http://www.groklaw.net/comment.php?mode=display&sid=20080705225101376&title=Not+a+support+forum...&type=article&order=&hideanonymous=0&pid=710510#c710552).

A simpler way is to make a list of the packages that you have installed and put them, one per line, in a text file. Then next time you do a reinstallation you can use that text file to restock your machine using a short shell script. Here is one such script, there are other, probably better, ways:



sudo apt-get update;

# note that ` is a 'backtick' not an apostrophe or single quote
for package in `cat /home/nuke_fluke/packages-i-want.txt`; do
sudo apt-get install --assume-yes $package;
done;


Or the text file itself could be a shell script.


#/bin/sh

sudo apt-get update;
sudo apt-get install --assume-yes package1;
sudo apt-get install --assume-yes package2;
# ...
sudo apt-get install --assume-yes packagen;

chuina
January 18th, 2010, 02:13 PM
sudo apt-get install aptoncdafter install go to System>Administration>APTonCD
write a with the softs u currently installed CD.(also if u saved the "package-name.deb" packages in any folder,add that folder here,it will resolve dependencies auto)

next time when installing any software use the CD with: System>Administration>Synaptic Software Manager> ::
Edit>Add CD-ROM
u can use it even in other online/offline Ubuntus

Lars Noodén
January 18th, 2010, 05:32 PM
@ chuina : Thanks! aptoncd (http://packages.ubuntu.com/karmic/aptoncd) was new to me but looks very useful.