You are making an assumption that wget and sudo are available.