There is a program named
notepad on my Ubuntu which I want to remove as I never use it. I have got update for notepad of 80 MB from
software updater. And I don't want to download that 80 MB.
.wine folder of my home directory & there deleted the program named
notepad. Still when I run the command
notepad on terminal, the notepad window opens. To find where this program is, I did:
ravbholua@ravbholua-Aspire-5315:~$ which notepad /usr/bin/notepad ravbholua@ravbholua-Aspire-5315:~$ sudo apt-get purge notepad [sudo] password for ravbholua: Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package notepad ravbholua@ravbholua-Aspire-5315:~$
So, whats the package name for this program? This program runs on wine (this I came to know after seeing the menu item named 'about notepad' for this program). How come this run on wine as the program name wine I deleted from the directory tree under
~/.wine and there is no other program named notepad under this folder?
W.R.T. to an answer, I'm posting the below:
ravbholua@ravbholua-Aspire-5315:~$ dpkg-query --search notepad wine1.7: /usr/share/icons/hicolor/24x24/apps/wine-notepad.png wine1.7: /usr/share/icons/hicolor/22x22/apps/wine-notepad.png wine1.7: /usr/share/applications/wine-notepad.desktop wine1.7-i386: /usr/lib/i386-linux-gnu/wine/fakedlls/notepad.exe wine1.7: /usr/share/icons/hicolor/32x32/apps/wine-notepad.png wine1.7: /usr/share/man/man1/notepad.1.gz wine1.7: /usr/bin/notepad wine1.7-i386: /usr/lib/i386-linux-gnu/wine/notepad.exe.so wine1.7: /usr/share/icons/hicolor/16x16/apps/wine-notepad.png wine1.7: /usr/share/icons/hicolor/48x48/apps/wine-notepad.png wine1.7: /usr/share/icons/hicolor/scalable/apps/notepad-48.svg kdelibs5-plugins: /usr/lib/kde4/notepadpart.so ravbholua@ravbholua-Aspire-5315:~$
From this, whats the package name of notepad?
The answer wrote by @slm has worked with the following note.
Earlier I was getting an update for wine for 80.2 MB. Then after holding
wine1.7 using command
sudo apt-mark hold wine1.7, I got update for ~50MB. So, I understood it's working. Now to hold everything on wine, I did the following.
ravbholua@ravbholua-Aspire-5315:~$ dpkg --get-selections | grep wine wine-gecko2.24:i386 install wine-mono0.0.8 install wine1.4 install wine1.4-i386 install wine1.7 hold wine1.7-i386 install winetricks install
I see here that the package
wine1.7 which I had held from update is only marked as hold. So, I ran the below to hold all these.
$ sudo apt-mark hold wine-gecko2.24:i386 wine-mono0.0.8 wine1.4 wine1.4-i386 wine1.7 wine1.7-i386 winetricks
And now I'm not getting the update at all.