I have seen many softwares such as Update Manager and Synaptic Package Manager, they wait if some other program is using the /var/lib/dpkg/lock
and is locked. How can we do this through the Terminal? I saw apt-get
's manual but didn't find anything useful.