I am creating a sample debian package, where i need to get the user input which is a number , usually all the user input is taken in postinst script, it would be simple for me if i use simple read command to get what i want,
Is is mandatory to use debconf like creating templates then config script and using db_get from postinst as in deconf tutorial
Can any tell me why to use the above complex process instead of using simple read command.
There is no requirement, but debconf does a lot of work for you which you would have to do manually if you don't take advantage of it. For example:
Are you still sure you want to reject debconf?