LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I want a process to pause or something (https://www.linuxquestions.org/questions/linux-newbie-8/i-want-a-process-to-pause-or-something-4175534849/)

CoolDude100 02-23-2015 05:31 AM

I want a process to pause or something
 
When I do apt-get update and apt-get upgrade, both times I have to unplug my ethernet cord right after it's done downloading the stuff and right before it finishes saying "reading changelogs" and stuff because maybe a second or three after it finishes reading the changelogs my firewall will be lowered. If I unplug my ethernet cord in time I just reset the iptables and plug my ethernet cord back in. For really small upgrades it will finish downloading and reading changelogs too quick so I'm not sure if my firewall was lowered or not and I have to reinstall. I just want it to pause or wait for 5 seconds or something after the upgrades are downloaded. Is there any way for me to do this?

JeremyBoden 02-23-2015 05:48 AM

Do you unplug your cable every time you visit a secure site?

CoolDude100 02-23-2015 06:10 AM

I guess I might know what you mean by that. I removed my wireless card because the wireless transmits before you can log in and set up the firewall and it totally compromises my computer. So I have a 100 foot ethernet cable up to my room.

JeremyBoden 02-23-2015 11:11 AM

Get encrypted wireless!

Shadow_7 02-23-2015 11:18 AM

# apt-get -d dist-upgrade

Will download only. At which point you can envoke paranoia and disconnect from the network.

# apt-get dist-upgrade

Will do the updates with what's already downloaded, if everything is already downloaded. You don't necessarily have to pull the hardware. You could ifdown and modprobe -r the driver.

CoolDude100 02-23-2015 02:02 PM

Can I ask what the difference is between apt-get upgrade and apt-get dist-upgrade?

CoolDude100 02-23-2015 02:12 PM

I Googled and found this for my answers and I don't really know what these mean.

http://askubuntu.com/questions/21526...-newer-version

http://askubuntu.com/questions/81585...e-than-upgrade

The thing is apt-get upgrade seems to have been keeping my computer secure just fine for 3 months now. Can you tell me how dist-upgrade might be necessary in simple terms?

CoolDude100 02-23-2015 02:17 PM

Every time I've done apt-get upgrade I've done apt-get update first. Does dist-upgrade just do both of these or something?

Shadow_7 02-23-2015 04:05 PM

They should be mostly the same. BITD the dist-upgrade was more distro-ish and might have done extra stuff, but they both upgrade the system. The update still needs to be done in either case to know what needs upgrading. The main thing is the -d option which is download only so it doesn't actually update until you don't use the -d option.


All times are GMT -5. The time now is 10:07 PM.