[ubuntu-in] Fwd: sudo ap-get install with (y/n) ?

Nitesh Mistry mailbox at mistrynitesh.net
Tue Nov 23 17:31:38 GMT 2010


On Tue, Nov 23, 2010 at 10:15:55PM +0530, Narendra Sisodiya wrote:
> --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.

--dry-run / --simulate quits after only simulating the install process.
IIRC, you are (were) looking for a way by which apt-get must ask (confirm)
you whether to install a package even if it does not have any dependency.

Am I not understanding correctly?


-- 
Regards,
Nitesh Mistry | www.mistrynitesh.com
PGP key id: A6FEF696 | 'geekosopher' on freenode irc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/ubuntu-in/attachments/20101123/7d223459/attachment.pgp 


More information about the ubuntu-in mailing list