Skip to content

Instantly share code, notes, and snippets.

@kdabir
Last active March 14, 2016 06:55
Show Gist options
  • Select an option

  • Save kdabir/3799150 to your computer and use it in GitHub Desktop.

Select an option

Save kdabir/3799150 to your computer and use it in GitHub Desktop.

Revisions

  1. kdabir renamed this gist Aug 10, 2013. 1 changed file with 0 additions and 14 deletions.
    14 changes: 0 additions & 14 deletions macports_and _brew_maintenance.md → macports_maintenance.md
    Original file line number Diff line number Diff line change
    @@ -31,17 +31,3 @@ Interesting options you can provide while doing port install
    - ports [quickstart](https://trac.macports.org/wiki/UsingMacPortsQuickStart)
    - This [blogpost](http://simenhag.blogspot.in/2008/11/cleaning-up-macports.html)

    HomeBrew Maintenance
    ====================

    To list all the software/lib installed by brew `$ brew list`

    to update an app `$ sudo brew update appname`

    to see issues `$ brew doctor`

    to update brew itself `$ sudo brew update`

    list outdated software/lib `$ sudo brew outdated`

    update all the outdated software/lib `$ sudo brew upgrade`
  2. kdabir revised this gist Jan 8, 2013. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions macports_and _brew_maintenance.md
    Original file line number Diff line number Diff line change
    @@ -2,9 +2,9 @@ MacPorts Maintainence
    =====================

    #### UPDATING
    To update ports definition `$ sudo port selfupdate`
    - To update ports definition `$ sudo port selfupdate`

    To upgrade outdated software to latest`$ sudo port upgrade outdated`
    - To upgrade outdated software to latest`$ sudo port upgrade outdated`


    #### CLEANING
    @@ -13,11 +13,11 @@ To upgrade outdated software to latest`$ sudo port upgrade outdated`
    - To uninstall all installed that are inactive `$ sudo port -u uninstall` Or `$ sudo port -f uninstall inactive`

    #### CHECKING
    To list all the software/lib installed by macports `$ port installed`
    - To list all the software/lib installed by macports `$ port installed`

    To find space occupied by software installed by macports `$ du -sh /opt/local`
    - To find space occupied by software installed by macports `$ du -sh /opt/local`

    To find if port is available for appName `$ port list | grep appName`
    - To find if port is available for appName `$ port list | grep appName`

    #### INSTALLING
    Interesting options you can provide while doing port install
  3. kdabir revised this gist Jan 8, 2013. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions macports_and _brew_maintenance.md
    Original file line number Diff line number Diff line change
    @@ -8,9 +8,9 @@ To upgrade outdated software to latest`$ sudo port upgrade outdated`


    #### CLEANING
    To clean temp files generated by ports `$ sudo port clean --all installed`
    - To clean temp files generated by ports `$ sudo port clean --all installed`

    To uninstall all installed that are inactive `$ sudo port -u uninstall` Or `$ sudo port -f uninstall inactive`
    - To uninstall all installed that are inactive `$ sudo port -u uninstall` Or `$ sudo port -f uninstall inactive`

    #### CHECKING
    To list all the software/lib installed by macports `$ port installed`
    @@ -21,6 +21,7 @@ To find if port is available for appName `$ port list | grep appName`

    #### INSTALLING
    Interesting options you can provide while doing port install

    -u uninstall non-active ports when upgrading and uninstalling
    -c autoclean mode (execute clean after install)

  4. kdabir revised this gist Jan 8, 2013. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion macports_and _brew_maintenance.md
    Original file line number Diff line number Diff line change
    @@ -37,4 +37,10 @@ To list all the software/lib installed by brew `$ brew list`

    to update an app `$ sudo brew update appname`

    to see issues `brew doctor`
    to see issues `$ brew doctor`

    to update brew itself `$ sudo brew update`

    list outdated software/lib `$ sudo brew outdated`

    update all the outdated software/lib `$ sudo brew upgrade`
  5. kdabir revised this gist Jan 8, 2013. 1 changed file with 9 additions and 5 deletions.
    14 changes: 9 additions & 5 deletions macports_and _brew_maintenance.md
    Original file line number Diff line number Diff line change
    @@ -1,30 +1,30 @@
    MacPorts Maintainence
    =====================

    ## UPDATING
    #### UPDATING
    To update ports definition `$ sudo port selfupdate`

    To upgrade outdated software to latest`$ sudo port upgrade outdated`


    ## CLEANING
    #### CLEANING
    To clean temp files generated by ports `$ sudo port clean --all installed`

    To uninstall all installed that are inactive `$ sudo port -u uninstall` Or `$ sudo port -f uninstall inactive`

    ## CHECKING
    #### CHECKING
    To list all the software/lib installed by macports `$ port installed`

    To find space occupied by software installed by macports `$ du -sh /opt/local`

    To find if port is available for appName `$ port list | grep appName`


    #### INSTALLING
    Interesting options you can provide while doing port install
    -u uninstall non-active ports when upgrading and uninstalling
    -c autoclean mode (execute clean after install)

    ###Resources :
    ####Resources :
    - `man port`
    - ports [How TO](https://trac.macports.org/wiki/howto)
    - ports [quickstart](https://trac.macports.org/wiki/UsingMacPortsQuickStart)
    @@ -34,3 +34,7 @@ HomeBrew Maintenance
    ====================

    To list all the software/lib installed by brew `$ brew list`

    to update an app `$ sudo brew update appname`

    to see issues `brew doctor`
  6. kdabir revised this gist Jan 8, 2013. 2 changed files with 36 additions and 51 deletions.
    36 changes: 36 additions & 0 deletions macports_and _brew_maintenance.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,36 @@
    MacPorts Maintainence
    =====================

    ## UPDATING
    To update ports definition `$ sudo port selfupdate`

    To upgrade outdated software to latest`$ sudo port upgrade outdated`


    ## CLEANING
    To clean temp files generated by ports `$ sudo port clean --all installed`

    To uninstall all installed that are inactive `$ sudo port -u uninstall` Or `$ sudo port -f uninstall inactive`

    ## CHECKING
    To list all the software/lib installed by macports `$ port installed`

    To find space occupied by software installed by macports `$ du -sh /opt/local`

    To find if port is available for appName `$ port list | grep appName`


    Interesting options you can provide while doing port install
    -u uninstall non-active ports when upgrading and uninstalling
    -c autoclean mode (execute clean after install)

    ###Resources :
    - `man port`
    - ports [How TO](https://trac.macports.org/wiki/howto)
    - ports [quickstart](https://trac.macports.org/wiki/UsingMacPortsQuickStart)
    - This [blogpost](http://simenhag.blogspot.in/2008/11/cleaning-up-macports.html)

    HomeBrew Maintenance
    ====================

    To list all the software/lib installed by brew `$ brew list`
    51 changes: 0 additions & 51 deletions macports_maintenance.md
    Original file line number Diff line number Diff line change
    @@ -1,51 +0,0 @@
    MacPorts Maintainence
    =====================

    ## UPDATING
    To update ports

    $ sudo port selfupdate

    To upgrade outdated software to latest

    $ sudo port upgrade outdated


    ## CLEANING
    To clean temp files generated by ports

    $ sudo port clean --all installed

    To uninstall all installed that are inactive

    $ sudo port -u uninstall
    Or

    $ sudo port -f uninstall inactive


    ## CHECKING
    To list all the software/lib installed by macports

    $ port installed

    To find space occupied by software installed by macports

    $ du -sh /opt/local

    To find if port is available for appName

    $ port list | grep appName


    Interesting options you can provide while doing port install

    -u uninstall non-active ports when upgrading and uninstalling
    -c autoclean mode (execute clean after install)


    ###Resources :
    - `man port`
    - ports [How TO](https://trac.macports.org/wiki/howto)
    - ports [quickstart](https://trac.macports.org/wiki/UsingMacPortsQuickStart)
    - This [blogpost](http://simenhag.blogspot.in/2008/11/cleaning-up-macports.html)
  7. kdabir revised this gist Jan 8, 2013. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions macports_maintenance.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,3 @@

    MacPorts Maintainence
    =====================

    @@ -11,9 +10,6 @@ To upgrade outdated software to latest

    $ sudo port upgrade outdated

    To list all the software/lib installed by macports

    $ port installed

    ## CLEANING
    To clean temp files generated by ports
    @@ -29,6 +25,10 @@ Or


    ## CHECKING
    To list all the software/lib installed by macports

    $ port installed

    To find space occupied by software installed by macports

    $ du -sh /opt/local
  8. kdabir created this gist Sep 28, 2012.
    51 changes: 51 additions & 0 deletions macports_maintenance.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,51 @@

    MacPorts Maintainence
    =====================

    ## UPDATING
    To update ports

    $ sudo port selfupdate

    To upgrade outdated software to latest

    $ sudo port upgrade outdated

    To list all the software/lib installed by macports

    $ port installed

    ## CLEANING
    To clean temp files generated by ports

    $ sudo port clean --all installed

    To uninstall all installed that are inactive

    $ sudo port -u uninstall
    Or

    $ sudo port -f uninstall inactive


    ## CHECKING
    To find space occupied by software installed by macports

    $ du -sh /opt/local

    To find if port is available for appName

    $ port list | grep appName


    Interesting options you can provide while doing port install

    -u uninstall non-active ports when upgrading and uninstalling
    -c autoclean mode (execute clean after install)


    ###Resources :
    - `man port`
    - ports [How TO](https://trac.macports.org/wiki/howto)
    - ports [quickstart](https://trac.macports.org/wiki/UsingMacPortsQuickStart)
    - This [blogpost](http://simenhag.blogspot.in/2008/11/cleaning-up-macports.html)