Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

uninstall mono ubuntu

# be su:
sudo -i
# list all the packages from the mono repository (into file pkg1):
grep ^Package: /var/lib/apt/lists/download.mono-project.com*_Packages > pkg1
# extract just the package names (into file pkg2):
sed -e 's/^.*Package: //' pkg1 > pkg2
# (optional but I wanted to do that anyway) remove duplicate package names from different architectures and put definitive list of packages to search for and remove in pkg3:
awk '!seen[$0]++' pkg2 > pkg3
# (optional, for check) count the lines in the files (one line = one package) to see what happened:
wc -l pkg1 and wc -l pkg2 and wc -l pkg3
# remove packages listed in pkg3:
apt purge $(cat pkg3)
# cleanup :
rm pkg1 pkg2 pkg3
Comment

PREVIOUS NEXT
Code Example
Shell :: golang hot reload 
Shell :: change remote url github 
Shell :: how to exit git log 
Shell :: make root password kali 
Shell :: how to install ansible in centos 
Shell :: add router to vue 
Shell :: Set wp-config.php using wp-cli 
Shell :: error could not lock config file .git/config permission denied ubuntu 
Shell :: install heroku cli on linux 
Shell :: linux package path 
Shell :: remove first word of pipe output 
Shell :: sonarqube docker setup 
Shell :: replace first occurence of substring 
Shell :: remove all iptables rules 
Shell :: Get pid of process that created a specific window 
Shell :: install cv2 
Shell :: how to open chrome on linux mac 
Shell :: git reset last commit keep changes 
Shell :: Shell CLI Argument Default Value 
Shell :: how to completely remove haproxy from ubuntu 
Shell :: checkout to last commit git 
Shell :: Error: ENOSPC: System limit for number of file watchers reached, watch 
Shell :: get list of directories bash 
Shell :: linux command create folder if not exist 
Shell :: git remove file from history 
Shell :: install memcache di linux 
Shell :: nvm install stable not found 
Shell :: echo with color from bash 
Shell :: git refusing to merge unrelated histories 
Shell :: ubuntu arial font 
ADD CONTENT
Topic
Content
Source link
Name
7+4 =