Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 08-03-2004, 02:31 AM   #1
LQ Newbie
Registered: Dec 2003
Location: Indonesia
Distribution: debian
Posts: 2

Rep: Reputation: 0
Is there any script to reverse the process of dpkg -i file-1.1.1.deb?

Supposed that I have installed a debian package using:
#dpkg -i someprog-1.1.1.deb

Then I deleted the someprog-1.1.1.deb
#rm sameprog-1.1.1.deb

Is there any way or any script to collect all installed
files and package them together as someprog-1.1.1.deb again?

Sun Zai Fa
Old 08-03-2004, 03:20 AM   #2
Senior Member
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
it would really help you a LOT if you read some documentation on how to use Debians package management-system!
It is really excellent - both the system itself as well as the documentation!

To answer your question:

usually - you do not install anything from command-line like you did - but this does not hurt - it is just by far not as convenient as it could be...

try using (and getting familiar with) debians utilities to manage the installation - I have always used "dselect" (which itself uses different tools to do its job..)

just typing "dselect" (while being root) should give you on overview on what is installed and what is available in your system - you will find the package you installed listed there - and can uninstall it this way.

"man dpkg" would have revealed the opposite option to "dpkg -i..." - which is "dpkg -r ..."
Old 08-03-2004, 09:01 AM   #3
Senior Member
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,241

Rep: Reputation: 77
Install dpkg-repack:
apt-get install dpkg-repack
Then run:
dpkg-repack <package name>
If you don't know the package name, open "synaptic" and scroll through the installed packages. If you type:
man dpkg-repack
You can see more options and get more information.


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
Sub-Process /usr/bin/dpkg returned an error code (1) Bookspoppa Debian 39 11-12-2013 01:21 PM
dpkg -i .deb and apt-get, ok to mix? r3dhatter Debian 1 09-24-2005 10:13 PM
Bash script to process every file in current dir and sub dirs BuckRogers01 Linux - Software 3 09-06-2005 07:32 AM
bitorrent deb dpkg installation complaint about python celejar Debian 3 04-22-2005 11:38 AM
a script for process lof file to find online user netman_af Linux - Networking 1 08-17-2004 09:18 AM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:57 AM.

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