LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-15-2005, 03:53 PM   #1
monkeyman2000
Member
 
Registered: Oct 2003
Posts: 68

Rep: Reputation: 15
how can I create a .deb from an installed package?


Hi,

I have some packages on my debian machine, which I installed via apt-get. I would like to create .deb files for these packages to keep as archives. How can I generate a .deb file from a package installed in my system?
 
Old 06-15-2005, 04:08 PM   #2
Thorium
Member
 
Registered: Dec 2004
Location: USA
Distribution: Debian
Posts: 124

Rep: Reputation: 15
I believe any stuff you have used apt to install is in /var/cache/apt/archives All the .debs should be sitting in there Hmm...anyone know if apt does an apt-get clean by itself after a certian amount of time?
 
Old 06-15-2005, 08:14 PM   #3
monkeyman2000
Member
 
Registered: Oct 2003
Posts: 68

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Thorium
I believe any stuff you have used apt to install is in /var/cache/apt/archives All the .debs should be sitting in there Hmm...anyone know if apt does an apt-get clean by itself after a certian amount of time?

According to the apt-get man page:
Code:
clean 

clean clears out the local repository of retrieved package files. It
removes everything but the lock file from /var/cache/apt/archives/ and
/var/cache/apt/archives/partial/. When APT is used as a dselect(8)
method, clean is run automatically. Those who do not use dselect will
likely want to run apt-get clean from time to time to free up disk
space.
So if anyone knows... How can I generate a .deb file from a package installed in my system...assuming the .deb no longer exists in /var/cache/apt/archives/? Is this possible?
 
Old 06-15-2005, 09:18 PM   #4
Thorium
Member
 
Registered: Dec 2004
Location: USA
Distribution: Debian
Posts: 124

Rep: Reputation: 15
Ah I see what you mean, if you did already did a clean. I guess it would have to be like making a deb package normally, which is a bit above me at the moment :P

http://www.debian.org/doc/maint-guide/
 
Old 06-16-2005, 03:36 AM   #5
Markup
LQ Newbie
 
Registered: Feb 2005
Distribution: RHEL4, SLED10, Ubuntu, Solaris
Posts: 26

Rep: Reputation: 15
apt-get install dpkg-repack

dpkg-repack

Quote:
dpkg-repack creates a .deb file out of a debian package that has already been installed. If any changes have been made to the package while it was unpacked (ie, files in /etc were modified), the new package will inherit the changes.

This utility can make it easy to copy packages from one computer to another, or to recreate packages that are installed on your system, but no longer available elsewhere, or to store the current state of a package before you upgrade it.
Should be useful.
 
Old 06-16-2005, 07:56 PM   #6
monkeyman2000
Member
 
Registered: Oct 2003
Posts: 68

Original Poster
Rep: Reputation: 15
dpkg-repack

Quote:
Originally posted by Markup
apt-get install dpkg-repack

Should be useful.

Yep, that's exactly what I was looking for... works like a charm. Thanks, Markup!!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
"Repair permissions" - installed .deb package achallenger1 Debian 3 08-21-2005 03:49 PM
the last installed deb package, how ? ag2uki Debian 7 08-15-2005 07:44 AM
create RPM-package from installed files ? hungnt Linux - Software 1 07-10-2005 11:17 PM
how to create a deb package from a source abd_bela Debian 1 03-04-2005 10:27 AM
How to create a .deb library package? FloFri Debian 3 05-03-2004 11:12 AM

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

All times are GMT -5. The time now is 03:53 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration