Ubuntu :: Quickly Remove Multiple Related Packages From Command Line?
Feb 15, 2011
Is there any way to quickly remove multiple related packages from the command line instead of having to enter the name of every single one? I am trying to remove OpenOffice from my server running 10.04. It would work nicely if I could get a list of packages without line breaks, such as the list displayed by aptitude when upgrading. That way I could just paste the package list into the terminal. However, "aptitude search 'openoffice'" dumps a long list on many lines that cannot be used that way.
Working with a scientific code that uses more RAM+swap then i generally have (system has 12GB RAM + 24GB swap, but this thing is crazy)It's kind of a one use problem, so I'm not looking to get more RAM, is there a quick way to add more swap space (not on the swap partition, because i have that set at 24GB) so that my system can use it immediately?I don't want to drive up to the office tonight to get this fixed, so a command line setup would work best.
VirtualBox is awesome tool for experiment and learning Linux.On the Linux guest OS, I installed standard system without Xorg.i expected it remove all the packages that come along with gnome-terminal previously.Only gnome-terminal was removed, 750kB free space. Now the system have 149MB packages as waste data IMHO.It doesn't look right to me.
Just installed Lucid from CD ROM. I have 2 HDDs. When the install screen came to ask about partitions, it didn't seem to want me to install it onto the same HDD as my XP/Ubuntu 9.10 partitions, so I installed it onto my other HDD. After it finished, I restarted and it appeared on GRUB. It takes me to a command line where it asks me for my desktop login and then my password.
It allows me to type in my login, but the password isn't so easy. It won't let me type it in. It's as if the keyboard stops working apart from the return key. I have no understanding of command line. As soon as I'd entered my password, it went on to tell me that there were no packages to install, and then stayed on command line as if I'd just opened a terminal. How would I get it to take me to my desktop?
i am trying to install upgrades for my ubuntu server via webmin, and i put in the command apt-get install imagemagick and when i do that i see the output and it asks me if i want to install, is there a command that will automatically force the installation so that way i dont have to hit yes or Y?
command line, I have a server for work that I ssh into and I need to be able to find multiple files (they have the leading text just the date identifier changes) and then zip the files (with bzip) them and then finally scp(Secure copy) them to another server.
These files are always in the same directory and this is a daily task and just want to make into a script that I run once I am logged into the remote server.
I liked the idea of the "cosmos" screensaver/desktop, but wanted to add my own pictures to the application. I navigated to /usr/share/backgrounds/cosmos and tried to drag and drop. I quickly found that I did not have permission to do this.
I googled my problem and found some command line tutorials telling me to sudo cp. My problem is that I have about 30 pics that I want to move in there, and I don't think I can just move the directory, they have to be in that folder as the pictures themselves.
I don't really feel like typing the cp line multiple times with multiple randomly named image files.
Is there a way to have the command line cp all of my files from one directory to another?
I've seen a few tutorials that have commands and parameters on multiple line, like the one below:
Code: chkconfig --levels 235 mysqld on /etc/init.d/mysqld start
I can copy and paste this in Putty, but what if I want to manually type it? If I press return, the first line gets processed, so how do I insert a new line?
I have a centos server x86_64 arch installed - i am getting some issues where i want to update rpms but because there is a equivliant i386 package installed i get dependency errors.Is it safe to run this command to remove all i386 packages - will my system still boot after this yum remove *.i?86
I have an older computer with Arch installed that I want to use to accomplish most of my daily tasks using the command-line (Mailgrab, IRSSI, mpg123, Elinks, Vi, etc). I realize that there are many lightweight WMs out there that support multiple monitors, but it'd be nice if I could just use Screen or something to that effect to distribute my windows across two or three displays.
I'm pretty sure this is doable from the command line, but my CLI skills have degraded a lot since my pre-Y2K admin days. The goal is to search all the files in the directory for a very long string of text and replace it with another string of text. The text being searched for is my Google Adsense code (which will be stripped from my website) and it will be replaced with a placeholder so I can easily tack something else in there in the future.
Seeing how I have that long snip of code on about 100 pages, automating the process would make life easier. If I was searching for a single word, I can see ways to do this. If I paste the code I'm searching for into a text file, is there a way to: find (contents of oldstring.txt) and replace with (contents of newstring.txt)?
I am using ubuntu and mysql.I have a list of many .sql files, like 1.sql, 2.sql, 3.sql ... 100000.sqlI need to insert them into the database mysql mydb < *.sqlGives me: -bash: *.sql: ambiguous redirect
Where exactly are the temporary files stored, in /tmp or /var/tmp. How can i remove temporary files through command line? What is the difference between these two directories?
I want to (from the command line) be able to counte lines in a bunch of files of a specific type in a folder and all its sub-folders. How would I do this?
So, I usually write/find a test case generator for any code that I write. This type of code generally leads to some file output. To be thorough, I try and generate many different files to test my code on.
Say the command is like this:
Is there a way to automate this for many different values of the parameters and generate many different files?
I tried:
I wasn't able to use the $i in the filename, and without it the command gave me no errors, but did nothing else either. I know the Unix command line is very powerful, and I have a feeling that this should be possible, but I just don't know how to do it.
I want to take a graphics file and make 10 copies of it to the same directory, each with 001, 002, or some such designation at the end of each file name so they have discrete files names. Is this possible using cp?
Yesterday i finally got around to installing my graphics card (NVIDIA GeForce 8400M CS) on fedora 12 by using the command yum install kmod-nvidia the terminal then told me that it installed correctly so i rebooted my system. Now when i boot up into fedora, it loads and when the sign in window is about to appear instead my screen shows random colors all over the place. I am hoping someone can tell me how to remove this via the command line prior to actually starting fedora.
I've just added an application to load on startup in gnome.At first gnome loads properly,but after few seconds that application starts automatically and I can see its icon on taskbar , then gnome freezes and I can't do anything in gui.
How I can remove that application from starup of gnome using command line?
I just blindly install 'java' in GNU/Linux Debian SID -- so I could use it as a plugin for iceweasel -- Unfortunately, things didn't work as expected. I was used to Debian's APT to take care of things for me as it had done for more years than I could remember. (Being a desktop user/programmer and a beginner system network admin). I want a clean install of java plugin for iceweasel. So I want to remove completely all java related packages --
How do I know which is which and if they are safe to remove without affecting any other part of the system? Now, to install -- what do I need to install in order for iceweasel to have the Java plugin and let java work as it should? I prefer from the Debian package. But if it doesn't work, I'll accept JRE from the java site and install them myself.
I installed Mono 2.4 and I am struggling myself to remove all folders related to mono.. I didn't install from Synaptic so it's not just 'apt-get autoremove mono', I used the tarball.. how to remove all files from the installation?
Is there a command line alternative to clicking on "Safely Remove Drive" in nautilus?
When I click on "Safely Remove Drive" in nautilus, the USB HDD attached (WD Elements) vanishes from the nautilus "places" list, the drive spins down, and the light on the drive dims to indicate that it is powered down.
I have tried the "umount" command as well as the "eject" command from the terminal, but they both only seem to unmount the drive, as it is still shown in the nautilus "places" list and the light on the drive stays bright.
SuSE SLES10, 32 bit. I have an app which crashes with general protection often.
There is message every time in /var/log/messages: 2010-10-22T08:49:49.350476+02:00 HostName kernel: ProgramName[28023] general protection rip:404575 rsp:7fffc5656270 error:0
How do I establish relation between this message and source code? Error was observed on another host where some tests were running, now license is expired and I can't get more info nor core dump. I have to investigate what I have and try to reproduce it locally. Unfortunately original binary was stripped.Now I prepared non-stripped version. Does it has the same addresses for function as original? Is it possible to use symbol information for finding where RIP points to?
I added a code into terminal and restarted, then I tried to install Java and this came up.'There seems to be a programming error in aptdaemon. This is the software that allows you to install/remove software and to perform other package management related tasks.'
PHP Code: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/aptdaemon/worker.py", line 961, in simulate
i've gotten my fedora 12 to the point where i can run python3 scripts from command line and can call up python 2.6.2 idle with the command 'idle' from command line. what command will call up python3 (3.1.2 to be exact) idle?