You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "panbingkun (via GitHub)" <gi...@apache.org> on 2024/03/22 00:53:56 UTC

Re: [PR] [SPARK-47502][INFRA] Make the `size` of the installed packages output in `descending` order, add a `header`, and remove some unused installation packages in the container [spark]

panbingkun commented on code in PR #45630:
URL: https://github.com/apache/spark/pull/45630#discussion_r1534906837


##########
dev/free_disk_space_container:
##########
@@ -21,13 +21,24 @@ echo "=================================="
 echo "Free up disk space on CI system"
 echo "=================================="
 
-echo "Listing 100 largest packages"
-dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 100
+echo "Listing top 100 largest packages (from large to small)"
+printf "Installed-Size\tPackage\n"
+dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n -r | head -n 100
 df -h
 
 echo "Removing large packages"
 rm -rf /__t/CodeQL
 rm -rf /__t/go
 rm -rf /__t/node
 
+apt-get remove --purge -y '^aspnet.*'

Review Comment:
   Done, but the title is `too long` and it's not easy to summarize it into one simple sentence, 😄



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org