Advertising
Paste Description for null
/bin/gupd
- null
- Thursday, May 3rd, 2012 at 1:56:37am MDT
- #!/bin/bash
- #gentoo update script
- #Copyright 2009 by andy
- choice=$1
- su -c '
- while [ "$choice" != "0" ]; do
- echo -e " ";
- echo -e "\033[01;31m1)\033[01;32m -= Update portage tree =-\033[01;00m";
- echo -e "\033[01;31m2)\033[01;32m -= Update your system =-\033[01;00m";
- echo -e "\033[01;31m3)\033[01;32m -= Remove obsoleted packages =-\033[01;00m";
- echo -e "\033[01;31m4)\033[01;32m -= Rebuild removed packages =-\033[01;00m";
- echo -e "\033[01;31m5)\033[01;32m -= Clean distfiles =-\033[01;00m";
- echo -e "\033[01;31m0)\033[01;32m -= Exit =-\033[01;00m";
- read choice
- if [ $choice ]; then
- case $choice in
- 1) echo -e "\033[01;32m-= Updating portage tree =-\033[01;00m";
- emerge -v --sync;
- echo -e "\033[01;32m-= Portage tree updated successfully =-\033[01;00m";;
- 2) echo -e "\033[01;32m-= Updating your system =-\033[01;00m";
- emerge -avtDuN world;
- echo -e "\033[01;32m-= System updated successfully =-\033[01;00m";;
- 3) echo -e "\033[01;32m-= Removing obsoleted packages =-\033[01;00m";
- emerge -pv --depclean;
- echo -e "\033[01;32m-= Obsoleted packages removed successfully =-\033[01;00m";;
- 4) echo -e "\033[01;32m-= Rebuilding removed packages =-\033[01;00m";
- revdep-rebuild;
- echo -e "\033[01;32m-= Removed packages rebuilded successfully =-\033[01;00m";;
- 5) echo -e "\033[01;32m-= Cleaning distfiles =-\033[01;00m";
- eclean -d distfiles;
- rm -f /usr/portage/distfiles/* ;
- echo -e "\033[01;32m-= Distfiles cleaned successfully =-\033[01;00m";;
- 0) echo -e "\033[01;32m-= Exiting =-\033[01;00m";;
- *) echo -e "\033[01;32m-= Wrong choice, choose again =-\033[01;00m";;
- esac
- fi
- done'
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.