passing values while installing packages

hi All,

while in stalling packages there are values we need to pass, how to pass those on commandline/runtime .

ex: [y/n]
[db name]:
[option 3?]:

Strange question when you already have posted a post with the expect module.