Displaying 3 results from an estimated 3 matches for "purge_system".
2015 Feb 26
2
Easy way to strip down CentOS?
...txt
PKGLIST=$TMP/pkglist.txt
rm -f $RPMLIST $PKGLIST
rpm -qa | sort > $RPMLIST
sed 's/-[^-]*-[^-]*\.[^.]*\.[^.]*$//' $RPMLIST > $PKGLIST
2. I copy that package list to the 'core' file in my Git repo and run
the following script on the system I want to prune:
#!/bin/bash
#
# purge_system.sh
#
# (c) Niki Kovacs, 2014
CWD=$(pwd)
TMP=/tmp
RPMLIST=$TMP/rpmlist.txt
PKGLIST=$TMP/pkglist.txt
PKGINFO=$TMP/pkg_database
rpm -qa | sort > $RPMLIST
sed 's/-[^-]*-[^-]*\.[^.]*\.[^.]*$//' $RPMLIST > $PKGLIST
PACKAGES=$(egrep -v '(^\#)|(^\s+$)' $PKGLIST)
rm -rf $RPMLIST...
2015 Feb 26
0
Easy way to strip down CentOS?
...$PKGLIST
> rpm -qa | sort > $RPMLIST
> sed 's/-[^-]*-[^-]*\.[^.]*\.[^.]*$//' $RPMLIST > $PKGLIST
>
> 2. I copy that package list to the 'core' file in my Git repo and run the
> following script on the system I want to prune:
>
> #!/bin/bash
> #
> # purge_system.sh
> #
> # (c) Niki Kovacs, 2014
>
> CWD=$(pwd)
> TMP=/tmp
>
> RPMLIST=$TMP/rpmlist.txt
> PKGLIST=$TMP/pkglist.txt
> PKGINFO=$TMP/pkg_database
>
> rpm -qa | sort > $RPMLIST
>
> sed 's/-[^-]*-[^-]*\.[^.]*\.[^.]*$//' $RPMLIST > $PKGLIST
>
> P...
2015 Feb 26
2
Easy way to strip down CentOS?
On Wed, February 25, 2015 14:18, Brian Mathis wrote:
>
> I don't think there's a single yum command that lets you roll
> back to the packages the were installed at a given point in
> time. I also don't think that this would get you back to the
> *exact* system as it was.
# yum history rollback 1 # return to first post-update state.
# yum history undo 1 # undo