LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 08-03-2004, 02:31 AM   #1
sunzaifa
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?

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

Rep: Reputation: 55
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
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249

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


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
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

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

All times are GMT -5. The time now is 12:56 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
Open Source Consulting | Domain Registration