[ubuntu-in] Fwd: sudo ap-get install with (y/n) ?
narendra at narendrasisodiya.com
Tue Nov 23 16:45:55 GMT 2010
> > 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
*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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ubuntu-in