mirror of
				https://gitea.blesmrt.net/mikaela/scripts.git
				synced 2025-11-04 11:27:37 +01:00 
			
		
		
		
	deb-updatea.bash: combine dnf check-update & upgrade
This commit is contained in:
		
							parent
							
								
									da9c90ee2e
								
							
						
					
					
						commit
						bbbcf9f2c3
					
				@ -43,13 +43,18 @@ if hash dnf 2>/dev/null; then
 | 
			
		||||
	# I don't know if -y does anything here either and I think this may be
 | 
			
		||||
	# useless, but I am used to it coming from apt and I think it will just
 | 
			
		||||
	# say nothing to do or do nothing if mirrors haven't updated.
 | 
			
		||||
	dnf -v check-update -y
 | 
			
		||||
	#dnf -v check-update -y
 | 
			
		||||
 | 
			
		||||
	# potentially unsafe first time, I am not sure if this is concern outside of Debian/Ubuntu though
 | 
			
		||||
	dnf -v "$@" autoremove
 | 
			
		||||
 | 
			
		||||
	# If arguments like -y are passed to the script, they become "$@"
 | 
			
		||||
	dnf -v "$@" upgrade
 | 
			
		||||
	#dnf -v "$@" upgrade
 | 
			
		||||
 | 
			
		||||
	# check-update and upgrade together, causes more traffic due to less
 | 
			
		||||
	# caching, but required for certain Chromium-based browsers with their
 | 
			
		||||
	# own repositories
 | 
			
		||||
	dnf -v "$@" upgrade --refresh
 | 
			
		||||
 | 
			
		||||
	# potentially unsafe, see a few lines above and the apt-get section
 | 
			
		||||
	dnf -v "$@" autoremove
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user