LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 10-21-2006, 08:46 PM   #1
craftybytes
Member
 
Registered: Jan 2006
Location: Killarney, QLD Australia
Distribution: Mepis 3.4-3; Puppy 2.12; WinXP Pro (rarely)
Posts: 54

Rep: Reputation: 15
Broken dependencies - editing .deb files?


Hi all,

In my use of MEPIS v3.4-3 and installing many various progs - there have been times when I've gone into the .deb file and changed a 'dependency' type and/or version number by using the following CLI steps:

(using the .deb for Opera as an example)

**** extract 'control' file ****
ar x opera_*.deb control.tar.gz
gzip -d control.tar.gz
tar -xf control.tar ./control

"edit 'control' using kwrite changing the required depends line as needed"

**** return 'control' file to the .deb ****
tar -uf control.tar ./control
gzip control.tar
ar r opera_*.deb control.tar.gz

**** finish ****

Now this is all done from the command line in konsole!!

How would one code these steps up in 'bash' to do this for any .deb file like a simple GUI instead of using the command line method?

Any help or code would be much appreciated!
 
Old 10-23-2006, 09:38 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Are you saying you want to automate this all with a bash script? Doesn't seem too hard. It sounds like a good project for learning how to script to me. Perhaps you should read through a scripting guide or two. I found LinuxCommand to be very helpful in this regard.
 
Old 10-24-2006, 04:48 AM   #3
craftybytes
Member
 
Registered: Jan 2006
Location: Killarney, QLD Australia
Distribution: Mepis 3.4-3; Puppy 2.12; WinXP Pro (rarely)
Posts: 54

Original Poster
Rep: Reputation: 15
Hi David the H,

Thanks for the reply

Yep, could be a good little project - thanks for the link - looks interesting!!

Will delve deeper! Mind you though, thought I might have got somebody to post some useful script(s) as to how to do this - save my the effort (the old brain cells are not quite firing on all cylinders these days) .

Ta anyways..
 
  


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
I've broken apt-get/synaptic due to insalling a .deb file grahamu Linux - Desktop 9 09-25-2006 10:02 AM
Apt-Get i need help fixing broken dependencies turkenator02 Suse/Novell 2 05-11-2006 04:36 AM
How to update missing/broken file in deb package pinknick Debian 3 01-15-2006 04:06 AM
New to apt-get and have broken dependencies aquaboot Debian 9 08-21-2005 02:09 AM
problem during kde 3.2 installation, broken dependencies jogurt666 Linux - Software 1 02-08-2004 02:18 PM


All times are GMT -5. The time now is 04:48 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration