My question is marked as duplicate a month ago. I have edited and improved question and flagged today to reopen but It isn't reopened. Thus, Is there any chances of reopening? or I should post new question and delete old.
First of all, editing a closed question in the 1st 5 days after closure automatically puts it into the reopen review queue. Once there, it needs 5 people to vote for it to be reopened before it is reopened.
Now, your particular question is a duplicate and it should not be reopened. You are basically asking how to detect dependencies for deb packages and the dupe answers that very well. You can't expect us to simply write the script for you, you need to do some of the work yourself. So, if your question is actually "Please write my script for me", it is off topic, we're not a script writing service. If your question is "How can I detect dependencies" then the dupe answers it.