mirror of
				https://github.com/dcarrillo/prezto.git
				synced 2025-11-04 12:09:08 +00:00 
			
		
		
		
	The function previously worked only when there were no updates available. Pacman also does not need superuser rights to list installed packages.
		
			
				
	
	
		
			22 lines
		
	
	
		
			330 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			330 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
#
 | 
						|
# Lists explicitly installed Pacman packages.
 | 
						|
#
 | 
						|
# Authors:
 | 
						|
#   Benjamin Boudreau <dreurmail@gmail.com>
 | 
						|
#   Sorin Ionescu <sorin.ionescu@gmail.com>
 | 
						|
#
 | 
						|
 | 
						|
pacman --query --explicit --info \
 | 
						|
  | awk '
 | 
						|
      BEGIN {
 | 
						|
        FS=":"
 | 
						|
      }
 | 
						|
      /^Name/ {
 | 
						|
        print $2
 | 
						|
      }
 | 
						|
      /^Description/ {
 | 
						|
        print $2
 | 
						|
      }
 | 
						|
    '
 | 
						|
 |