> > On Tue, Nov 23, 2010 at 07:23:22PM +0530, Narendra Sisodiya wrote:
> >> I want opposite.
> >>
> >> sudo apt-get -y install expect
> >> >
> >> >
> >> I want something like
> >>
> >> sudo apt-get -n install expect
> >>
> >> or some method that apt-get must ask for y/n question for every
> >> installation.
>

--dry-run is the option.
Or you can use any of the following option to print
       -s, --simulate, --just-print, --dry-run, --recon, --no-act


So,
*sudo apt-get install --dry-run expect | sed -n '/The following NEW packages
will be installed/,/upgraded/p'*

Will print dependency of a package.
Also, apt-cache do not print the actual dependency. I mean
Actual dependency resolution. It just print what is written in package.
-- 
ubuntu-in mailing list
ubuntu-in@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-in

Reply via email to