You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packaging/homebrew/HOMEBREW.md
+45-6Lines changed: 45 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,9 +26,9 @@ Once the formula is accepted into `homebrew-core`, install with:
26
26
brew install mfc
27
27
```
28
28
29
-
#### Option 2: Third-Party Tap
29
+
#### Option 2: Third-Party Tap (Recommended)
30
30
31
-
If the formula is available in a tap repository:
31
+
Install from the official MFC Homebrew tap:
32
32
33
33
```bash
34
34
# Add the tap
@@ -38,6 +38,8 @@ brew tap MFlowCode/mfc
38
38
brew install MFlowCode/mfc/mfc
39
39
```
40
40
41
+
The tap is automatically kept up-to-date with the latest formula changes.
42
+
41
43
#### Option 3: Install from Local Formula File
42
44
43
45
If you have the formula file locally (e.g., from cloning the MFC repository):
@@ -101,6 +103,26 @@ mfc run case.py
101
103
mfc run $(brew --prefix mfc)/examples/1D_sodshocktube/case.py
102
104
```
103
105
106
+
### Uninstallation
107
+
108
+
To remove MFC from your system:
109
+
110
+
```bash
111
+
# Uninstall MFC
112
+
brew uninstall mfc
113
+
114
+
# If installed from a tap, you may also want to remove the tap
115
+
brew untap MFlowCode/mfc # Replace with your tap name if different
116
+
```
117
+
118
+
**Note**: Uninstalling MFC will remove:
119
+
- All MFC binaries (`mfc`, `pre_process`, `simulation`, `post_process`)
120
+
- The Python virtual environment and toolchain
121
+
- Example cases
122
+
- All associated files
123
+
124
+
The uninstallation is clean and complete - Homebrew will remove all files that were installed by the formula.
125
+
104
126
## What Gets Installed
105
127
106
128
When users run `brew install mfc`, they get:
@@ -341,6 +363,12 @@ brew reinstall mfc
341
363
342
364
# View installation logs
343
365
brew install --verbose mfc
366
+
367
+
# Uninstall MFC
368
+
brew uninstall mfc
369
+
370
+
# Remove tap (if installed from a tap)
371
+
brew untap MFlowCode/mfc
344
372
```
345
373
346
374
**Note**: The `brew --prefix mfc` command returns the "opt" symlink location (e.g., `/usr/local/opt/mfc` or `/opt/homebrew/opt/mfc`), not the actual versioned Cellar path. The "opt" directory points to the currently active version in the Cellar, making examples work on both Intel and Apple Silicon systems. If you need the actual versioned installation path, look in the Cellar directory (e.g., `/usr/local/Cellar/mfc/VERSION`).
@@ -357,13 +385,24 @@ Submit a pull request to homebrew-core for inclusion in the main Homebrew reposi
357
385
- Automated testing passes
358
386
359
387
### Third-Party Tap
360
-
Create a separate tap (custom repository) for immediate availability:
388
+
389
+
MFC maintains an official Homebrew tap at `MFlowCode/homebrew-mfc` for easy installation:
390
+
361
391
```bash
362
-
brew tap organization/mfc
363
-
brew install organization/mfc/mfc
392
+
# Add the tap
393
+
brew tap MFlowCode/mfc
394
+
395
+
# Install MFC
396
+
brew install MFlowCode/mfc/mfc
364
397
```
365
398
366
-
This allows distribution before official Homebrew acceptance.
399
+
The tap is automatically updated whenever the formula changes in the main MFC repository. This allows distribution before official Homebrew acceptance and provides a convenient installation method for users.
0 commit comments