I will leave here some important basic linux terminal command that might be helpful during program installation and uninstallation process in Ubuntu.
When you want to know the available version of package name then execute following command
apt-cache policy packagename
When you want to install the specific version of package name then execute the following command
apt install packagename=version
When you want to pin the package name not get to update in future then do the following
In the following directory,
/etc/apt/preferences.d/
Add the following content in the existing file,
package : program name
pin : version x.x.x*
pin-priority : 1000
Note : pin-priority - This will prevent the program from the up-gradation.
When you want to know the recently installed package name then execute the following command
find /var/lib/dpkg/info/ -name \*.list -mtime -3 | sed 's#.list$##;s#.*/##'
This will show the list package name which has installed in last 3 hours. If you want to know before 3 hours then you can replace the 3 as your wish.
When you want to know the available version of package name then execute following command
apt-cache policy packagename
When you want to install the specific version of package name then execute the following command
apt install packagename=version
When you want to pin the package name not get to update in future then do the following
In the following directory,
/etc/apt/preferences.d/
Add the following content in the existing file,
package : program name
pin : version x.x.x*
pin-priority : 1000
Note : pin-priority - This will prevent the program from the up-gradation.
When you want to know the recently installed package name then execute the following command
find /var/lib/dpkg/info/ -name \*.list -mtime -3 | sed 's#.list$##;s#.*/##'
This will show the list package name which has installed in last 3 hours. If you want to know before 3 hours then you can replace the 3 as your wish.
Comments
Post a Comment