-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a new script that removes some packages we do not need. Use it in nvhpc and sycl/amd CIs. These CIs often run out of space. We don't want to use it in every CI, because it takes about 5 minutes to run the script.
- Loading branch information
1 parent
71e9f93
commit 4f01809
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Copyright 2023 The AMReX Community | ||
# | ||
# License: BSD-3-Clause-LBNL | ||
|
||
# Don't want to use the following line because apt-get remove may fail if | ||
# the package specfied does not exist. | ||
# set -eu -o pipefail | ||
|
||
# Large packages | ||
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 100 | ||
|
||
echo 'Removing some packages we do not need' | ||
|
||
df -h | ||
|
||
apt list --installed | ||
|
||
sudo apt-get remove -y '^apache.*' | ||
sudo apt-get remove -y '^aspnetcore.*' | ||
sudo apt-get remove -y '^azure.*' | ||
sudo apt-get remove -y '^dotnet.*' | ||
sudo apt-get remove -y '^firebird.*' | ||
sudo apt-get remove -y '^firefox.*' | ||
sudo apt-get remove -y '^google.*' | ||
sudo apt-get remove -y '^hhvm.*' | ||
sudo apt-get remove -y '^microsoft.*' | ||
sudo apt-get remove -y '^mongodb.*' | ||
sudo apt-get remove -y '^mono-.*' | ||
sudo apt-get remove -y '^monodoc-.*' | ||
sudo apt-get remove -y '^mysql.*' | ||
sudo apt-get remove -y '^php.*' | ||
sudo apt-get remove -y '^powershell.*' | ||
sudo apt-get remove -y '^snapd.*' | ||
sudo apt-get remove -y '^temurin.*' | ||
|
||
sudo apt-get autoremove -y | ||
|
||
df -h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters