This is my first how-to so I hope it will be understood.
The problems I had with FreeBSD was that when I wanted to install a package I found out that it has many dependencies that I didn`t want and with pkg_delete(1) I could uninstall only that program, because I forgot what installed, so keeping a good clean system was a problem for me, so I found a solution.
1. Take a snapshot of your installed programs before install,
2. Install your program
****
A lot of dependencies installed.
****
If you find that you are not fond with the results proceed to step 3.
3. Take another snapshot
4. Uninstall the installed programs
This will revert the packages to the state that it was before installing your package.
Hope it helps someone.
The problems I had with FreeBSD was that when I wanted to install a package I found out that it has many dependencies that I didn`t want and with pkg_delete(1) I could uninstall only that program, because I forgot what installed, so keeping a good clean system was a problem for me, so I found a solution.
1. Take a snapshot of your installed programs before install,
Code:
ls /var/db/pkg/ > ~/pkg_snap_before
Code:
pkg_add -r program_name
A lot of dependencies installed.
****
If you find that you are not fond with the results proceed to step 3.
3. Take another snapshot
Code:
ls /var/db/pkg/ > ~/pkg_snap_after
Code:
pkg_delete `grep -Fxvf ~/pkg_snap_before ~/pkg_snap_after`
This will revert the packages to the state that it was before installing your package.
Hope it helps someone.