Forum › Forums › New users › New Users and General Questions › antiX Autoremove
Tagged: antiX Autoremove, Autoremove do antiX
- This topic has 13 replies, 7 voices, and was last updated Mar 4-8:51 pm by ModdIt.
-
AuthorPosts
-
March 1, 2021 at 5:57 pm #55264Member
marcelocripe
Hello dear colleagues,
Last week, after updating antiX 19.2 full 64 bits and antiX 19 Legacy Bet2 Base 32 bits, I noticed that a new application program was added, located in the Applications> antiX menu, called antiX Autoremove.
What is antiX Autoremove and what is it for?
What will this program automatically remove from antiX?
I am grateful to colleagues who can clarify my doubts about this new program.
marcelocripe
(Original text in Brazilian Portuguese)———-
Olá caros colegas,
Na semana passada, após a atualização do antiX 19.2 full 64 bits e do antiX 19 Legacy Bet2 Base 32 bits, eu reparei que foi adicionado um novo programa aplicativo, localizado no menu Aplicações > antiX, chamado antiX Autoremove.
O que é o antiX Autoremove e para que serve?
O que este programa removerá automaticamente do antiX?
Eu agradeço aos colegas que puderem esclarecer as minhas dúvidas sobre este novo programa.
marcelocripe
(Texto original em Português do Brasil)March 1, 2021 at 6:32 pm #55268Member
Wallon
::Dear Marcelo
I also noticed this new item in the menu.
Atenciosamente,
Cordialement,
Wallon
Antix 19.3 FullMarch 1, 2021 at 6:38 pm #55269MemberModdIt
::Hi all apt autoremove points to
/usr/local/bin/yad-autoremoveIt is at present without any function on my system. Later will invoke apt autoremove, needs the yad box to ask for sudo.
There are a lot of useful scripts in /usr/local/bin, well woth looking around. BUT please make a backup before you change
anything in a script. You will see maybe 99% of expert users doing that to mitigate risk.Some like me use a live stick without persistence, shutdown without saving changes or remastering and reboot in to my clean system.
Should that not work I boot from a spare stick and clone to my experimental setup.I use that method a lot, for testing, compiling lighter applications and learning about how to write some very simple scripts.
On occasion with some highly valued help and advice from other way more advanced forum members.- This reply was modified 2 years, 2 months ago by ModdIt.
March 1, 2021 at 6:46 pm #55270MemberModdIt
::This is the bash script as found on my machine. Nothing bad, at least to my unskilled eye.
Almost all menu items can be checked by reading the command at end of line in icewm menu or menu-applications.
Something similar will apply to other desktops. Sorry can not check exactly as this machine is pure ice.(I use a bash alias for autoremove but this addition will help new users along the way).
#!/bin/bash
TEXTDOMAINDIR=/usr/share/locale
TEXTDOMAIN=yad-autoremovetouch ~/.loggy
log=”/tmp/$(date +%s)”### These 2 lines of code check for internet connectivity
# adapted from https://unix.stackexchange.com/questions/190513/shell-scripting-proper-way-to-check-for-internet-connectivity
if nc -zw1 google.com 443; then
echo $”Internet connection detected”### Check if user is Root, if not, pop up window asking for password, to run updater. If Cancelled, exit.
# adapted from https://stackoverflow.com/questions/42875809/checking-sudo-in-bash-script-with-if-statements
if [[ “$EUID” = 0 ]]; then
echo $”already root”
else
gksudo “antiX autoremove”
if sudo true; then
echo $”You are Root or running the script in sudo mode”
else
echo $”You entered the wrong password or you cancelled”
exit 1
fi
fienv LANGUAGE=en sudo apt update 2> “${log}” |
while read -r line; do echo “# ${line}”; echo ” ${line}” > ~/.loggy ; done |
yad –progress –pulsate –center –no-buttons –auto-close –progress-text=$”Waiting for a Network connection…” –width=500 –height=100 –title=”antiX – autoremove”
string=$(cat ~/.loggy)
for reqsubstr in ‘up to date’;do
if [ -z “${string##*$reqsubstr*}” ] ;then
x-terminal-emulator -T ” antiX – autoremove” -e /bin/bash -c “sudo apt autoremove -V && sleep 0.1 && yad –center –width=250 –text-align=center –text=$’Finished’ –button=’OK’:1 –title=’antiX – autoremove'”
fi
done### These 2 lines of code end the part of the script that checks for internet connectivity
else yad –center –width=250 –text-align=center –text=$”No Internet connection detected!” –title=’antiX – autoremove’ –button=’OK’:1fi
To find where to look I just checked the Icewm menu applications in my home. Location /home/username/.icewm/menu-applications.
- This reply was modified 2 years, 2 months ago by ModdIt.
March 2, 2021 at 2:33 am #55282Memberex_Koo
::Sometimes files are superseded and not used anymore it just removes them. If you use terminal with sudo apt update or upgrade at the end their may be a message to remove old files no longer used with sudo apt autoremove.
It is just the same as using sudo apt autoremove, saves typing use mouse clicks instead.
March 2, 2021 at 10:31 am #55287Member
marcelocripe
::Hi Koo,
Thank you very much for your explanations.
As you explained, it will be easy for everyone to understand what antiX Autoremove is for and what it does.
Thank you very much!
marcelocripe
(Original text in Brazilian Portuguese)———-
Olá Koo,
Muito obrigado por suas explicações.
Da forma que você explicou, será fácil para todos poderem entender para que serve e o que faz o antiX Autoremove.
Muito obrigado!
marcelocripe
(Texto original em Português do Brasil)March 3, 2021 at 11:31 am #55306MemberModdIt
::koo wrote, Sometimes files are superseded and not used anymore it just removes them.
I am sure he is experienced enough to check what will be autoremoved.Others will just click and lose which is why I did not just spoon out a short pre chewed answer..
For example In past months, more than one user booted to black screen. the computer did not ask if they really wanted to destroy a
running system, they just entered y and the picknik started its interesting course.
apt does write logfiles so a fix with instructions over the phone was reasonably easy.Marcello, wallone, other Users Please do some homework on package management before a couple of quick mouse clicks takes down your system.
Or worse some poor kid is crying in their room. First thing I teach, use the console and read all messages carefully, if unsure ask,
it saves a lot of pain.Apt and dpkg are behind the majority of shiny clicky click tools, very powerful and easy to understand.
- This reply was modified 2 years, 2 months ago by ModdIt.
March 3, 2021 at 12:21 pm #55309Member
marcelocripe
::ModdIt wrote:
Marcello, wallone, other Users Please do some homework on package management before a couple of quick mouse clicks takes down your system.Hello ModdIt,
You are absolutely right, that’s why I decided to start this topic. It is a pity that so far the developers have not spoken out about the new autoremove antiX application program. I imagine that this program is more of an implementation of the antiX community, since the shortcut icon is displayed in the antiX submenu and is located in the folder “/ usr / share / applications / antix” and there is no way to obtain information in other media.
Let’s wait…
marcelocripe
(Original text in Brazilian Portuguese)———-
Olá ModdIt,
Você tem toda a razão, é por isso que eu resolvi iniciar este tópico. É uma pena que até o momento os desenvolvedores não se manifestaram sobre o novo programa aplicativo antiX Autoremove. Eu imagino que este programa seja mais uma implementação da comunidade antiX, haja vista que o ícone de atalho é exibido no submenu antiX e está localizado na pasta “/usr/share/applications/antix” e não há como obter informações em outros meios.
Vamos aguardar…
marcelocripe
(Texto original em Português do Brasil)March 3, 2021 at 2:12 pm #55315Memberex_Koo
::Moddit is right don’t do something just because you are being ask too. Installing or removing anything always be careful.
It a good idea to do some research on the web first especially, if you want to install something new.
If you are not sure ask their is always someone home..Moddit Thanks
1. apt-get autoclean You may already have an idea about this Ubuntu clean command, what it does? Yes, in short, the cleaning. After using the Ubuntu system for quite some time, installing and uninstalling various software left residual files that didn’t need anymore, as we already have removed software uses those. Therefore, if your Ubuntu installed system hard drive doesn’t have much storage space then you can use this command to intermittently, remove the packages of the deleted software or no longer required archives available in a local repository on the hard disk. apt-get autoclean Don’t worry the system will automatically identify the packages that are useless in most of the cases. This is not going to harm your existing installed software on the system. Usage: sudo apt autoclean 2. apt-get clean: Like the above command, this one also deletes all unnecessary packages from package cache. It clear the files downloaded for the installation of some program on Linux using APT. This means it removes .deb packages that download to the local repository from the apt repository and no longer required. Also, point to be noted that the command will not remove any installed package from your system, it only clears the cache. Now, what is the difference between apt autoclean and apt clean commands, basically the “clean” one removes the downloaded .deb installer files residing in the /var/cache/apt/archives. For example, you have installed MySQL and after installing you removed it immediately or sometimes after. Now, if you again install it then the APT doesn’t need to fetch the installation packages from the online repository; instead, it will get them from a local cache storage. However, this also consumes hard disk space, if there is a new version available on the APT repo of the same program or you have uninstalled it. Then the cache of that would not be useful anymore. Hence, we can remove those .deb installer packages from Ubuntu/Debian Linux using the “apt clean” command. This is a good practice because in most cases these packages are useless. Whereas the “autoclean”, as I told, it also removes packages that are useless, I mean leftovers of uninstalled programs or packages no longer needed or compatible on the system. Usage: sudo apt clean 3. apt-get autoremove: Remove packages that are installed to meet the dependencies of other packages, but are no longer needed because either the program has been uninstalled or got updated packages. Many times after upgrading Ubuntu or Debian, the system would automatically ask you to run this command, so that no longer needed installed packages can be removed to free up the system space. After running this command the leftover of the removed dependencies can be clear using the autoremove command given above. Furthermore, this command can be used in two ways, if you want to remove installed software packages but retain configuration files then sudo apt-get remove Where to delete the installed packages, that are no longer needed along with their configuration files, use: sudo apt-get --purge remove In this way, now and again, we can free up some space of our Ubuntu or Debian running PC using these three commands. However, if you are a user who doesn’t install or uninstall so many programs or packages on Linux, still Update or upgrading process also leaves unused packages on the system.March 3, 2021 at 2:16 pm #55316Member
Xecure
::I am not the developer of this script, and I am not speaking for them, but what I see the script do is update the package list and autoremove the no longer needed dependencies with
sudo apt autoremove -V
as ModdIt already explained.Let me explain with some examples.
When you install a program, (example Libreoffice), apt will also download and install the dependencies it needs for libreoffice to run.When a new version of a package is released, some times it also uses different dependencies (I am not talking about newer versions, but entirely different packages), so the already installed old dependencies will become useless packages which are still installed in your system but that are not used by any program. “apt autoremove” will remove these packages, as they are no longer needed.
Also, when you uninstall a program (with apt or some other interface), apt will remove the main packages related to the program, but not all the dependencies. The same as before, “apt autoremove” will remove these no longer needed packages from your system, freeing some space.
The thing that may lead to problems, as ModdIt explained, happens when you install a new package (without proper research, following a Ubuntu guide somewhere on the internet) or a strange update occurs, and suddenly many VERY important packages are being removed or marked for autoremoval. It is at this moment the user has to see that something is going on. This barely ever happens, but if it happens you should be able to spot it immediately. A large number of programs want to be uninstalled and/or many important packages are marked for autoremoval.
That is why it is important to now blindly say yes to the “apt upgrade” or “apt autoremove” message without first confirming that nothing strange is going on.But as stated before, this is not something that happens often, and you simply need to pay attention to the messages stating that important things like Xorg or sysvinit or other indispensable programs want to be removed.
This new GUI for apt autoremove will be important for easing the transition in a distribution upgrade (like upgrading from antiX 19 to 21 in the future) and cleaning unneeded packages to free some space from your antiX installation.
antiX Live system enthusiast.
General Live Boot Parameters for antiX.March 3, 2021 at 6:32 pm #55321MemberModdIt
::Not being convinced and thinking how to make sure the autoremove script can not cause desaster I tried to invoke it.
It claimed I have no internet connection which is fine.
reason: if nc -zw1 google.com 443; then
echo $”Internet connection detected”I have blocked google.com in our hosts file. We use meta search engines :-).
March 4, 2021 at 5:45 pm #55355Member
userzero
::I expect the transition to the next Debian Stable to be smooth.
At the moment I am removing some apps that will be “deprecated”.
https://www.antixforum.com/forums/topic/antix-bullseye-a1-x64-bullseye-full-available/#post-49027 […] post #49027 […]
https://www.antixforum.com/forums/topic/future-antix/
There will be an official changelog?
system-keyboard-qt, replaces fskbsetting and lxkeymap?
system-keyboard-qt, I can use it on the current Stable (Buster).- This reply was modified 2 years, 2 months ago by userzero.
- This reply was modified 2 years, 2 months ago by userzero.
March 4, 2021 at 6:23 pm #55360Anonymous
::I have blocked google.com in our hosts file
Do you notice excessive CPU load (evident in conky bargraph) while viewing antixforum topic pages?
This hokey forum software embeds an oooooooold version of TinyMCE (a scripted component which generates the B I LINK B-QUOTE [..] CLOSE TAGS buttons displayed atop the post textarea element) which [[[ per my observation, YMMV depending on browser used ]]] incessantly churns, running a tight loop, unable to populate its google_translate_element
March 4, 2021 at 8:51 pm #55367MemberModdIt
::Hi skidoo,
ungoogled chromium moves between 0 and 1% while logged in and writing this textLibrewolf latest appimage slower start as needs to decompress then about same performance and footprint
as the chrome browser. (I removed the pingsender extension from the package).I do not see the intrusive google translate element, nice as it got on my nerves too often.
On a quad core I5 with Nvidia Graphic @ present so cpu load is slightly misleading, card is rendering,
fans pretty quiet so it is near idle.I can take a look with a low powered device tomorrow using same browsers.
-
AuthorPosts
- You must be logged in to reply to this topic.