User Tools

Site Tools


linux:dev1_3manage

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
linux:dev1_3manage [2026/01/09 21:04] azmanlinux:dev1_3manage [2026/01/09 21:05] (current) – [List Installed Packages] azman
Line 9: Line 9:
 ===== List Installed Packages ===== ===== List Installed Packages =====
  
-  * Using ''apt'' tool <code>apt list --installed 2>/dev/null | grep installed</code> +  * Using ''apt'' tool <code>apt list --installed 2>/dev/null | grep installed</code> 
     * Note that apt will issue a warning when piping its output in shell. Hence, the need to redirect ''stderr'' to ''/dev/null''     * Note that apt will issue a warning when piping its output in shell. Hence, the need to redirect ''stderr'' to ''/dev/null''
     * We can further grep away the packages that were automatically installed.     * We can further grep away the packages that were automatically installed.
-  * Using the basic ''dpkg'' tool <code>dpkg --get-selections | sed -n 's/^\([^\t]*\)\t.*$/\1/ p'</code> +  * Using the basic ''dpkg'' tool <code>dpkg --get-selections | sed -n 's/^\([^\t]*\)\t.*$/\1/ p'</code> 
     * This version, however, only provides package name.      * This version, however, only provides package name. 
-    * To extract similar output from ''apt'' (assuming output was redirected into a file called ''temp.txt''), run <code>cat temp.txt | sed -n 's|^\(.*\)/.*$|\1| p'</code>+    * To extract similar output from ''apt'' (assuming output was redirected into a file called ''temp.txt''), run <code>cat temp.txt | sed -n 's|^\(.*\)/.*$|\1| p'</code>
  
linux/dev1_3manage.txt · Last modified: by azman